Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules: editor: common backwar|forward word #685

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions modules/editor/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ bindkey -d
# Emacs Key Bindings
#

for key ("$key_info[Escape]"{B,b}) bindkey -M emacs "$key" emacs-backward-word
for key ("$key_info[Escape]"{F,f}) bindkey -M emacs "$key" emacs-forward-word
bindkey -M emacs "$key_info[Escape]$key_info[Left]" emacs-backward-word
bindkey -M emacs "$key_info[Escape]$key_info[Right]" emacs-forward-word

Expand Down Expand Up @@ -268,6 +266,9 @@ for keymap in 'emacs' 'viins'; do
bindkey -M "$keymap" "$key_info[Left]" backward-char
bindkey -M "$keymap" "$key_info[Right]" forward-char

for key ("$key_info[Escape]"{B,b}) bindkey -M "$keymap" "$key" backward-word
for key ("$key_info[Escape]"{F,f}) bindkey -M "$keymap" "$key" forward-word

# Expand history on space.
bindkey -M "$keymap" ' ' magic-space

Expand Down