In my vimrc file, I use the following few lines to swap backtick and single-quote for convenience when I'm using marks:
for first in ['', 'g', '[', ']'] for mode in ['n', 'x', 'o'] exe mode . "noremap " . first . "' " . first . "`" exe mode . "noremap " . first . "` " . first . "'" endfor endfor
This works great, but has the unfortunate side effect of breaking a plugin I use due to the plugin's internal use of marks. The plugin in question is the awesome and awesomely-named ninja-feet.vim, but my question isn't really about any plugin in particular. Is there a good way to define the mappings so that they don't take effect when plugin functions are being executed? If not, what's the best way to resolve this issue?
I can think of a number of solutions that would fix my particular problem but they're basically all hacks, so I'm curious if there's a good general approach to solve these sorts of conflicts.