mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
add few bindings for vi mode
This commit is contained in:
parent
d11f9f7148
commit
c92bb703dc
1 changed files with 9 additions and 0 deletions
|
@ -157,6 +157,10 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
|
|||
bind dB backward-kill-bigword
|
||||
bind dge backward-kill-word
|
||||
bind dgE backward-kill-bigword
|
||||
bind df begin-selection forward-jump kill-selection end-selection
|
||||
bind dt begin-selection forward-jump backward-char kill-selection end-selection
|
||||
bind dF begin-selection backward-jump kill-selection end-selection
|
||||
bind dT begin-selection backward-jump forward-char kill-selection end-selection
|
||||
|
||||
bind -m insert s delete-char force-repaint
|
||||
bind -m insert S kill-whole-line force-repaint
|
||||
|
@ -240,6 +244,11 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
|
|||
bind -M visual E forward-bigword
|
||||
bind -M visual o swap-selection-start-stop force-repaint
|
||||
|
||||
bind -M visual f forward-jump
|
||||
bind -M visual t forward-jump backward-char
|
||||
bind -M visual F backward-jump
|
||||
bind -M visual T backward-jump forward-char
|
||||
|
||||
for key in $eol_keys
|
||||
bind -M visual $key end-of-line
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue