mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Provide more useful insert mode mappings
This commit is contained in:
parent
ad5ad3d1ad
commit
32948b8dc6
1 changed files with 7 additions and 0 deletions
|
@ -181,6 +181,13 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
|
|||
bind -M insert -k right forward-char
|
||||
bind -M insert -k left backward-char
|
||||
|
||||
# useful insert mode mappings
|
||||
bind -M insert \ch backward-delete-char
|
||||
bind -M insert \cw backward-kill-word
|
||||
bind -M insert \cu backward-kill-line
|
||||
bind -M insert \cp history-search-backward
|
||||
bind -M insert \cn history-search-forward
|
||||
|
||||
bind -M insert -m default \cc backward-char force-repaint
|
||||
bind -M insert -m default \e backward-char force-repaint
|
||||
|
||||
|
|
Loading…
Reference in a new issue