Merge pull request #4 from maxfl/bind_mode

Minor bind fixes
This commit is contained in:
furunkel 2014-01-17 08:06:49 -08:00
commit 8b89bd7a1f

View File

@ -29,7 +29,7 @@ function fish_vi_key_bindings -d "vi-like key bindings for fish"
bind -m insert A end-of-line force-repaint
bind -m visual v begin-selection force-repaint
bind -m insert o "commandline -a \n" down-line force-repaint
#bind -m insert o "commandline -a \n" down-line force-repaint
#bind -m insert O beginning-of-line "commandline -i \n" up-line force-repaint # doesn't work
bind gg beginning-of-buffer
@ -51,6 +51,9 @@ function fish_vi_key_bindings -d "vi-like key bindings for fish"
bind u history-search-backward
bind \cr history-search-forward
bind [ history-token-search-backward
bind ] history-token-search-forward
bind k up-or-search
bind j down-or-search
bind \e\[A up-or-search
@ -82,10 +85,10 @@ function fish_vi_key_bindings -d "vi-like key bindings for fish"
bind d\x5e backward-kill-line
bind dw kill-word
bind dW kill-word
bind diw backward-word kill-word
bind diW backward-word kill-word
bind daw backward-word kill-word
bind daW backward-word kill-word
bind diw forward-char forward-char backward-word kill-word
bind diW forward-char forward-char backward-word kill-word
bind daw forward-char forward-char backward-word kill-word
bind daW forward-char forward-char backward-word kill-word
bind de kill-word
bind dE kill-word
bind db backward-kill-word
@ -101,10 +104,10 @@ function fish_vi_key_bindings -d "vi-like key bindings for fish"
bind -m insert c\x5e backward-kill-line force-repaint
bind -m insert cw kill-word force-repaint
bind -m insert cW kill-word force-repaint
bind -m insert ciw backward-word kill-word force-repaint
bind -m insert ciW backward-word kill-word force-repaint
bind -m insert caw backward-word kill-word force-repaint
bind -m insert caW backward-word kill-word force-repaint
bind -m insert ciw forward-char forward-char backward-word kill-word force-repaint
bind -m insert ciW forward-char forward-char backward-word kill-word force-repaint
bind -m insert caw forward-char forward-char backward-word kill-word force-repaint
bind -m insert caW forward-char forward-char backward-word kill-word force-repaint
bind -m insert ce kill-word force-repaint
bind -m insert cE kill-word force-repaint
bind -m insert cb backward-kill-word force-repaint
@ -125,10 +128,10 @@ function fish_vi_key_bindings -d "vi-like key bindings for fish"
bind y\x5e backward-kill-line yank
bind yw kill-word yank
bind yW kill-word yank
bind yiw backward-word kill-word yank
bind yiW backward-word kill-word yank
bind yaw backward-word kill-word yank
bind yaW backward-word kill-word yank
bind yiw forward-char forward-char backward-word kill-word yank
bind yiW forward-char forward-char backward-word kill-word yank
bind yaw forward-char forward-char backward-word kill-word yank
bind yaW forward-char forward-char backward-word kill-word yank
bind ye kill-word yank
bind yE kill-word yank
bind yb backward-kill-word yank
@ -136,8 +139,13 @@ function fish_vi_key_bindings -d "vi-like key bindings for fish"
bind ygE backward-kill-word yank
bind ygE backward-kill-word yank
# in emacs yank means paste
bind p yank
bind P backward-char yank-pop
bind P backward-char yank
bind gp yank-pop
bind '"*p' "commandline -i ( xsel -p; echo )[1]"
bind '"*P' backward-char "commandline -i ( xsel -p; echo )[1]"
#
# insert mode