1
0
Fork 0
mirror of synced 2024-11-23 07:45:34 -05:00

Add .zimrc option 'zinput_mode'

Closes #261
This commit is contained in:
Anton Shiryaev 2018-04-06 01:50:55 +03:00 committed by Eric Nielsen
parent 5768625356
commit acdb1d4bc7
2 changed files with 10 additions and 0 deletions

View file

@ -13,6 +13,13 @@ fi
# Source user configuration # Source user configuration
[[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc [[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc
# Set input mode before loading modules
if [ ${zinput_mode}='vi' ]; then
set -o vi
else
set -o emacs
fi
# Autoload module functions # Autoload module functions
() { () {
local mod_function local mod_function

View file

@ -57,6 +57,9 @@ ztermtitle='%n@%m:%~'
# Input # Input
# #
# Set to vi or emacs
zinput_mode='emacs'
# Uncomment to enable double-dot expansion. # Uncomment to enable double-dot expansion.
# This appends '../' to your input for each '.' you type after an initial '..' # This appends '../' to your input for each '.' you type after an initial '..'
#zdouble_dot_expand='true' #zdouble_dot_expand='true'