mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue