Skip to content

Commit

Permalink
[Fix sorin-ionescu#434] Correct ambiguity in the use of the term keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
sorin-ionescu authored and matthoffman committed Sep 18, 2014
1 parent ffa066d commit 90ae627
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions modules/editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Settings

### Key bindings

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

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

### Dot Expansion

Expand Down
10 changes: 5 additions & 5 deletions modules/editor/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,13 @@ fi
#

# Set the key layout.
zstyle -s ':prezto:module:editor' keymap 'keymap'
if [[ "$keymap" == (emacs|) ]]; then
zstyle -s ':prezto:module:editor' key-bindings 'key_bindings'
if [[ "$key_bindings" == (emacs|) ]]; then
bindkey -e
elif [[ "$keymap" == vi ]]; then
elif [[ "$key_bindings" == vi ]]; then
bindkey -v
else
print "prezto: invalid keymap: $keymap" >&2
print "prezto: editor: invalid key bindings: $key_bindings" >&2
fi

unset key{map,}
unset key{,map,bindings}
2 changes: 1 addition & 1 deletion runcoms/zpreztorc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ zstyle ':prezto:load' pmodule \
#

# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' keymap 'vi'
zstyle ':prezto:module:editor' key-bindings 'vi'

# Auto convert .... to ../..
zstyle ':prezto:module:editor' dot-expansion 'yes'
Expand Down

0 comments on commit 90ae627

Please sign in to comment.