1
0
Fork 0

modules/editor: additional user key-bindings

Added additional user defined key-bindings to take care of Home/End
keys depending on console/terminal.
pull/674/head
tokiclover 10 years ago
parent fedad8e9cf
commit 1cec912cda

@ -41,6 +41,19 @@ zstyle ':prezto:load' pmodule \
# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'emacs'
# Set additional key-bindings for terminal emulators, special characters
# should be escaped accordingly with a backslash '\'.
zstyle ':prezto:module:editor:term' default \
'Home' '\\eOH' 'End' '\\eOF'
zstyle ':prezto:module:editor:term' xterm \
'Home' '\\e\[H' 'End' '\\e\[F'
zstyle ':prezto:module:editor:term' linux \
'Home' '\\e\[1\~' 'End' '\\e\[4\~'
zstyle ':prezto:module:editor:term' rxvt \
'Home' '\\e\[7\~' 'End' '\\e\[8\~'
zstyle ':prezto:module:editor:term' eterm \
'Home' '\\e\[7\~' 'End' '\\e\[8\~'
# Auto convert .... to ../..
# zstyle ':prezto:module:editor' dot-expansion 'yes'

Loading…
Cancel
Save