prezto/modules/editor
kernc 7823bb9985 Bind Ctrl+Left to emacs-backward-word (and Right to forward)
Binds some additional sequences to emacs-backward-word and
emacs-forward-word. The problem is that terminfo doesn't know about
Ctrl+ArrowKeys, so one has to resort to using raw sequences as used
in the wild. The sequences were copied from Debian's /etc/inputrc
(readline configuration), so they should be fairly portable.
It works in xterm and rxvt terminals and doesn't work on
TERM=linux (virtual console) as Ctrl+Arrows send the same sequence
as Arrows alone.

http://zshwiki.org/home/zle/bindkeys
http://sources.debian.net/src/readline6/6.2+dfsg-0.1/debian/inputrc?hl=44#L44
2014-10-07 00:41:36 -04:00
..
init.zsh Bind Ctrl+Left to emacs-backward-word (and Right to forward) 2014-10-07 00:41:36 -04:00
README.md [Fix #648] Do not instruct users to call editor-info 2014-10-06 16:50:03 -04:00

Editor

Sets key bindings.

Settings

Key bindings

To enable key bindings, add the following to zpreztorc, and replace 'bindings' with 'emacs' or 'vi'.

zstyle ':prezto:module:editor' key-bindings 'bindings'

Dot Expansion

To enable the auto conversion of .... to ../.., add the following to zpreztorc.

zstyle ':prezto:module:editor' dot-expansion 'yes'

Theming

To indicate when the editor is in the primary keymap (emacs or viins), add the following to your theme_prompt_setup function.

zstyle ':prezto:module:editor:info:keymap:primary' format '>>>'

To indicate when the editor is in the primary keymap (emacs or viins) insert mode, add the following to your theme_prompt_setup function.

zstyle ':prezto:module:editor:info:keymap:primary:insert' format 'I'

To indicate when the editor is in the primary keymap (emacs or viins) overwrite mode, add the following to your theme_prompt_setup function.

zstyle ':prezto:module:editor:info:keymap:primary:overwrite' format 'O'

To indicate when the editor is in the alternate keymap (vicmd), add the following to your theme_prompt_setup function.

zstyle ':prezto:module:editor:info:keymap:alternate' format '<<<'

To indicate when the editor is completing, add the following to your theme_prompt_setup function.

zstyle ':prezto:module:editor:info:completing' format '...'

Then add $editor_info[context], where context is keymap, insert, or overwrite, to $PROMPT or $RPROMPT.

Authors

The authors of this module should be contacted via the issue tracker.