From c9577394ebe15f427fd2e80fa829f9ad80e52b61 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 6 Nov 2015 10:25:27 +0100 Subject: 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 --- doc_src/index.hdr.in | 2 -- share/functions/fish_vi_key_bindings.fish | 3 --- 2 files changed, 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 killring. -- @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]" -- cgit v1.2.3