rickhowe/diffchar.vim

Do not map F7,F8 etc. by default

Closed this issue ยท 5 comments

Or at least add an option to disable these mappings!
Thanks!

How about setting non-existent virtual keys in your vimrc to disable those mappings like this?

map <F19> <Plug>ToggleDiffCharAllLines
map <F20> <Plug>ToggleDiffCharCurrentLine

That's what I'm doing now. But IMHO user should be able to disable these mappings altogether with just one line of code.
Another option is to map only the keys which aren't mapped yet.

Since this issue opened, this plugin has overwritten a couple more of my mappings: <Leader>g and <Leader>p. It is cumbersome to have to track down why my mapping stopped working. Then return to this GitHub issue. Then piecemeal blacklist this plugin's new mappings. Then maintain that blacklist. I think the plugin should be polite by default, as the previous comment suggested.

Thank you. I just updated to 7.2 not to map the keys which have been used. Please check.

Works great! Thank you!