Monday, February 13, 2012

Re: problem mapping commands

Leonardo Barbosa, Mon 2012-02-13 @ 13:32:42-0200:
> I have some mappings in my .vimrc. However, some of them only work if
> I re-source my .vimrc after I have opened the file to edit. What might
> be happening?

My guess would be that you have an ftplugin script for the filetype
you're working with that clobbers the mappings you set in .vimrc.


> Is there a way of automatically resource the .vimrc everytime I open i
> file with vim?

Yes, but if the above is true, then it would be better to fix the
ftplugin not to overwrite your mappings rather than to repeatedly source
.vimrc in each buffer you edit.

No comments: