diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-11-06 10:25:27 +0100 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-11-06 10:25:27 +0100 |
commit | c9577394ebe15f427fd2e80fa829f9ad80e52b61 (patch) | |
tree | b8b6462291dc34049f525fc9de9613be276cf952 | |
parent | 0918ad6cee61e398bcdd2572100ef1faa578013e (diff) |
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
-rw-r--r-- | doc_src/index.hdr.in | 2 | ||||
-rw-r--r-- | share/functions/fish_vi_key_bindings.fish | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in index 20d86696..34b25755 100644 --- a/doc_src/index.hdr.in +++ b/doc_src/index.hdr.in @@ -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,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. \subsubsection vi-mode-visual Visual mode diff --git a/share/functions/fish_vi_key_bindings.fish b/share/functions/fish_vi_key_bindings.fish index e1dd7805..53551f0f 100644 --- a/share/functions/fish_vi_key_bindings.fish +++ b/share/functions/fish_vi_key_bindings.fish @@ -165,9 +165,6 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish' # This is complete in vim 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' backward-char "commandline -i ( xsel -p; echo )[1]" |