diff options
author | Maxim Gonchar <gmaxfl@gmail.com> | 2014-01-17 10:40:32 +0400 |
---|---|---|
committer | Maxim Gonchar <gmaxfl@gmail.com> | 2014-01-17 10:40:32 +0400 |
commit | fc68b9d7cd255db18a01aa3e70bfba0090b855c7 (patch) | |
tree | ef3e7a33ff492120250966db5ebd0079d8a43592 /share | |
parent | 8138b2080b813274131433d7a4c08fd937f04ee4 (diff) |
Minor bind fixes
Comment out 'o' binding
Add '['/']' bindings to navigate current token history
Fix 'P' to paste indeed
Add "*P/"*p to insert current selection clipboard using xsel
Diffstat (limited to 'share')
-rw-r--r-- | share/functions/fish_vi_key_bindings.fish | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/share/functions/fish_vi_key_bindings.fish b/share/functions/fish_vi_key_bindings.fish index a6851fc4..d26b7e35 100644 --- a/share/functions/fish_vi_key_bindings.fish +++ b/share/functions/fish_vi_key_bindings.fish @@ -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 @@ -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 |