Unmapping Vim Plugin mappings

Is there a way to disable mappings set by plugins? I am currently exe ":mapclear" before my custom mappings in my .vimrc file, but the plugin files seem to be received after the vimrc file. I need to download the vimrc file again so that it works as expected.

I use Pathogen for plug-ins that are all contained in my ~ / .vim / bundle folder.

+6
vim
source share
2 answers

You can write the mappings part in your .vimrc in another file, for example MyMaps.vim, and put this file in ~ / .vim / after / plugins /. This should make your cards default.

Also look at the documentation for plugins that establish mappings, some of which allow you to reassign or deactivate default mappings.

+4
source share

While I was looking through various plugins, I found my solution.

Unfortunately, many plugins (such as vim-surround and vim-align, which in turn use cecutil) add commands to my marker. Since I realized that there are actually some keyword mappings from the plugins that I use, I decided to set my werner to my default file (backslash) at the end of my vimrc file to prevent overlapping.

The only problem I encountered was the mappings that were set in the functions. When using au FileType html call ConfigHTML() , for example, the ConfigHTML() function is actually called after the cookie has been returned to the backslash.

-one
source share

All Articles