tig
tig copied to clipboard
key binding @ in vim.tigrc not working
The key binding @ in contrib/vim.tigrc is not working,
bind generic @ none
bind generic @j :/^@@
bind generic @k :?^@@
bind generic @- :toggle diff-context -1
bind generic @+ :toggle diff-context +1
because the default config tigrc is
bind stage @ :/^@@ # Jump to next (c)hunk
bind stage [ :toggle diff-context -1 # Decrease the diff context
bind stage ] :toggle diff-context +1 # Increase the diff context
bind diff @ :/^@@ # Jump to next (c)hunk
bind diff [ :toggle diff-context -1 # Decrease the diff context
bind diff ] :toggle diff-context +1 # Increase the diff context
bind pager @ :/^@@ # Jump to next (c)hunk
The unbind statement can not work because generic can not overwrite the stage&diff&pager.
If not working, please remove them in contrib/vim.tigrc. Thanks.
Easily fixed with:
bind diff @ none
bind stage @ none
bind pager @ none
instead of:
bind generic @ none