After some settings (like installing other plugins and defining some mappings), I've found that GitGutter's Next Hunk (]c
and [c
) doesn't work any more.
If I do ]cabc
I will see :<C-U>execute v:count1 . 'GitGutterNextHunk'<CR>abc
in the command, which means the mapping resulted in entering the text in command directly.
When I do :map
I see ]c
correctly mapped to <Plug>GitGutterNextHunk
, which is then mapped as:
n <Plug>GitGutterNextHunk * &diff ? ']c' : ":<C-U>execute v:count1 . 'GitGutterNextHunk'<CR>"
Btw, calling directly like :execute 'GitGutterNextHunk'
works.
This all happens after I added the line set cpoptions="aABceFsd"
to my .vimrc
. I added the d
for tags
integration. How may that interfere with my mappings?
cpoptions
. seems like you might get a swifter response by asking the plugin creator directly.nnoremap / /\\v
to achieve what I can do withnnoremap / /\v
without thecpoptions
settings in my.vimrc
...