fish_vi_key_bindings: bind s to follow vim visual behaviour

This change adds a binding that sets the s key's behaviour to match
the c key's in visual mode. This mirrors vim's behaviour (see `:h v_s`
in vim or neovim).
This commit is contained in:
mtoohey31 2021-05-31 19:46:33 -04:00 committed by Fabian Homborg
parent a633889244
commit 6ca9f9ee38

View file

@ -302,6 +302,7 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
end
bind -s --preset -M visual -m insert c kill-selection end-selection repaint-mode
bind -s --preset -M visual -m insert s kill-selection end-selection repaint-mode
bind -s --preset -M visual -m default d kill-selection end-selection repaint-mode
bind -s --preset -M visual -m default x kill-selection end-selection repaint-mode
bind -s --preset -M visual -m default X kill-whole-line end-selection repaint-mode