Remove incorrect vi bindings

This commit is contained in:
2017-12-01 16:57:24 +00:00
parent b6fffc35fc
commit a8fe7e42af
2 changed files with 12 additions and 10 deletions

9
zshrc
View File

@@ -38,15 +38,18 @@ prompt fresh
# Enable vi mode line editor keymap
bindkey -v
# Enable yank, change, and delete whole line with 'Y', 'C', and 'D'
# Enable yank, change, and delete whole line with 'Y', 'cc', and 'dd'
bindkey -M vicmd 'Y' vi-yank-whole-line
bindkey -M vicmd 'C' vi-change-whole-line
bindkey -M vicmd 'D' kill-whole-line
# Enable undo with 'u' and redo with 'U'
bindkey -M vicmd 'u' undo
bindkey -M vicmd 'U' redo
# Enable toggle comment at start of line al la vim-commentary
bindkey -M vicmd 'gcc' vi-pound-insert
# TODO: vi-pipe???
# Enable substring history search with 'j' and 'k'
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down