rickhowe / diffchar.vim

Highlight the exact differences, based on characters and words
http://www.vim.org/scripts/script.php?script_id=4932
MIT License
217 stars 10 forks source link

Do not map F7,F8 etc. by default #1

Closed sergei-dyshel closed 7 years ago

sergei-dyshel commented 8 years ago

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

rickhowe commented 8 years ago

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

map <F19> <Plug>ToggleDiffCharAllLines
map <F20> <Plug>ToggleDiffCharCurrentLine
sergei-dyshel commented 8 years ago

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.

john-kurkowski commented 7 years ago

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.

rickhowe commented 7 years ago

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

john-kurkowski commented 7 years ago

Works great! Thank you!