mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-04 07:06:39 +08:00
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:
parent
a633889244
commit
6ca9f9ee38
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user