vi-mode: Inherit \cf and \cb bindings as well

This makes them {forward,backward}-char instead of -word, which means
they accept suggestions _fully_.

Fixes #2255
This commit is contained in:
Fabian Homborg 2015-11-06 10:25:27 +01:00
parent 0918ad6cee
commit c9577394eb
2 changed files with 0 additions and 5 deletions

View file

@ -956,8 +956,6 @@ Command mode is also known as normal mode.
- @key{Control,U} moves contents from the beginning of line to the cursor to the <a href="#killring">killring</a>. - @key{Control,U} moves contents from the beginning of line to the cursor to the <a href="#killring">killring</a>.
- @key{Control,B} and @key{Control,F} move the cursor one word left or right. If the cursor is already at the end of the line, and an autosuggestion is available, @key{Control,F} accepts the first word in the suggestion.
- @key{Control,x} moves the cursor to the end of the line. If an autosuggestion is available, it will be accepted completely. - @key{Control,x} moves the cursor to the end of the line. If an autosuggestion is available, it will be accepted completely.
\subsubsection vi-mode-visual Visual mode \subsubsection vi-mode-visual Visual mode

View file

@ -165,9 +165,6 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
# This is complete in vim # This is complete in vim
bind -M insert \cx end-of-line bind -M insert \cx end-of-line
bind -M insert \cf forward-word
bind -M insert \cb backward-word
bind '"*p' "commandline -i ( xsel -p; echo )[1]" bind '"*p' "commandline -i ( xsel -p; echo )[1]"
bind '"*P' backward-char "commandline -i ( xsel -p; echo )[1]" bind '"*P' backward-char "commandline -i ( xsel -p; echo )[1]"