From 1cec912cda90ef7cea046863542ed3e2640eaeae Mon Sep 17 00:00:00 2001 From: tokiclover Date: Wed, 17 Sep 2014 21:35:53 +0200 Subject: [PATCH] modules/editor: additional user key-bindings Added additional user defined key-bindings to take care of Home/End keys depending on console/terminal. --- runcoms/zpreztorc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/runcoms/zpreztorc b/runcoms/zpreztorc index a54fdb02..7146d90d 100644 --- a/runcoms/zpreztorc +++ b/runcoms/zpreztorc @@ -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'