mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:57:30 +08:00
Don't bind Alt-Return in Vi normal mode
It seems wrong because it's for text insertion; if someone actually wants to use it we can add it back.
This commit is contained in:
parent
865118e3b4
commit
c1f601f31e
|
@ -40,9 +40,6 @@ function __fish_shared_key_bindings -d "Bindings shared between emacs and vi mod
|
|||
bind --preset $argv --key btab complete-and-search
|
||||
bind --preset $argv -k sdc history-pager-delete or backward-delete-char # shifted delete
|
||||
|
||||
bind --preset $argv \e\n "commandline -f expand-abbr; commandline -i \n"
|
||||
bind --preset $argv \e\r "commandline -f expand-abbr; commandline -i \n"
|
||||
|
||||
bind --preset $argv -k down down-or-search
|
||||
bind --preset $argv -k up up-or-search
|
||||
bind --preset $argv \e\[A up-or-search
|
||||
|
@ -190,6 +187,8 @@ function __fish_shared_key_bindings -d "Bindings shared between emacs and vi mod
|
|||
bind --preset $argv \e\[27\;2\;13~ "commandline -f expand-abbr; commandline -i \n"
|
||||
# Shift+Return CSI u sequence, sent with XTerm.vt100.formatOtherKeys: 1
|
||||
bind --preset $argv \e\[13\;2u "commandline -f expand-abbr; commandline -i \n"
|
||||
bind --preset $argv \e\n "commandline -f expand-abbr; commandline -i \n"
|
||||
bind --preset $argv \e\r "commandline -f expand-abbr; commandline -i \n"
|
||||
# Closing a command substitution expands abbreviations
|
||||
bind --preset $argv ")" self-insert expand-abbr
|
||||
# Ctrl-space inserts space without expanding abbrs
|
||||
|
|
Loading…
Reference in New Issue
Block a user