1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 19:48:00 +00:00

Add usage information for editor

This commit is contained in:
Sorin Ionescu 2012-04-09 17:24:17 -04:00
parent 1ba592f40a
commit 1691d44fcc

View File

@ -1,26 +1,40 @@
#
# Sets keyboard bindings.
# Sets key bindings.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Usage:
# To enable key bindings, add the following to zshrc, and replace 'map' with
# 'emacs' or 'vi.
#
# zstyle ':omz:module:editor' keymap 'map'
#
# To enable the auto conversion of .... to ../.., add the following to zshrc.
#
# zstyle ':omz:module:editor' dot-expansion 'yes'
#
# To indicate when the editor is in the primary keymap (emacs or viins), add
# the following to your theme prompt setup function.
#
# zstyle ':omz:module:editor:keymap' primary '>>>'
#
# To indicate when the editor is in the alternate keymap (vicmd), add the
# following to your theme prompt setup function.
#
# zstyle ':omz:module:editor:keymap' alternate '<<<'
#
# To indicate when the editor is completing, add the following to your theme
# prompt setup function.
#
# zstyle ':omz:module:editor' completing '...'
#
# Dumb terminals lack support.
if [[ "$TERM" == 'dumb' ]]; then
return 1
fi
# The default styles.
# Indicator to notify of vi insert mode.
zstyle ':omz:module:editor:keymap' primary '>>>'
# Indicator to notify of vi command mode.
zstyle ':omz:module:editor:keymap' alternate '<<<'
# Indicator to notify of generating completion.
zstyle ':omz:module:editor' completing '...'
# Beep on error in line editor.
setopt BEEP