Remove incorrect vi bindings
This commit is contained in:
9
zshrc
9
zshrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user