mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 06:58:01 +00:00
Merge upstream/master
This commit is contained in:
commit
e7a12fdf06
@ -12,6 +12,17 @@ Sets editor specific key bindings options and variables.
|
|||||||
|
|
||||||
## Settings
|
## Settings
|
||||||
|
|
||||||
|
### Wordchars
|
||||||
|
|
||||||
|
To change what characters are considered part of a word, add the following to
|
||||||
|
_`${ZDOTDIR:-$HOME}/.zpreztorc`_.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
zstyle ':prezto:module:editor' wordchars <chars>
|
||||||
|
```
|
||||||
|
|
||||||
|
Defaults to `*?_-.[]~&;!#$%^(){}<>`.
|
||||||
|
|
||||||
### Key bindings
|
### Key bindings
|
||||||
|
|
||||||
To enable key bindings, add the following to _`${ZDOTDIR:-$HOME}/.zpreztorc`_,
|
To enable key bindings, add the following to _`${ZDOTDIR:-$HOME}/.zpreztorc`_,
|
||||||
|
@ -21,7 +21,8 @@ setopt BEEP # Beep on error in line editor.
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Treat these characters as part of a word.
|
# Treat these characters as part of a word.
|
||||||
WORDCHARS='*?_-.[]~&;!#$%^(){}<>'
|
zstyle -s ':prezto:module:editor' wordchars 'WORDCHARS' \
|
||||||
|
|| WORDCHARS='*?_-.[]~&;!#$%^(){}<>'
|
||||||
|
|
||||||
# Use human-friendly identifiers.
|
# Use human-friendly identifiers.
|
||||||
zmodload zsh/terminfo
|
zmodload zsh/terminfo
|
||||||
|
@ -60,6 +60,9 @@ zstyle ':prezto:load' pmodule \
|
|||||||
# Editor
|
# Editor
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Set the characters that are considered to be part of a word.
|
||||||
|
# zstyle ':prezto:module:editor' wordchars '*?_-.[]~&;!#$%^(){}<>'
|
||||||
|
|
||||||
# Set the key mapping style to 'emacs' or 'vi'.
|
# Set the key mapping style to 'emacs' or 'vi'.
|
||||||
zstyle ':prezto:module:editor' key-bindings 'emacs'
|
zstyle ':prezto:module:editor' key-bindings 'emacs'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user