prezto/modules/editor
Chauncey Garrett 0756ac5464 Merge branch 'master' of https://github.com/sorin-ionescu/prezto
* 'master' of https://github.com/sorin-ionescu/prezto: (63 commits)
  Support $PYTHONUSERBASE per PEP 370
  Create a default tmux session only when none defined in tmux.conf
  Fix git-info added/deleted count formatting typo
  [Fix #543] Do not set tmux destroy-unattached
  Simplify multiplexer auto-start tests
  Inform the user to load ruby as late as possible when using RVM
  [Fix #551] Rename tmux auto-start session
  Fix a test operator bug introduced in e5a0e33
  [Fix #541] Do not auto-load screen/tmux inside of Emacs/Vim
  Disable glob for bower
  Prefix rarely used osx functions
  Add functions to display and delete osx download history
  Update osx alias descriptions
  Make osx functions autoloadable
  Cast AppleScript paths to text
  Add capability to browse man pages in Dash.app
  Remove Bwana.app support
  Add double slash after Bwana.app's man protocol
  [Fix #361] Load chruby when found
  [Fix #535] Set Pacman frontend to 'pacman' when none set
  ...
2014-04-14 13:47:12 -05:00
..
init.zsh Merge branch 'master' of https://github.com/sorin-ionescu/prezto 2014-04-14 13:47:12 -05:00
README.md [Fix #434] Correct ambiguity in the use of the term keymap 2013-05-27 17:23:53 -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 and call editor-info in the prompt_name_preexec hook function.

Authors

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