Monday, February 13, 2012

Re: problem mapping commands

On Feb 13, 9:46 am, Taylor Hedberg <tmhedb...@gmail.com> wrote:
> 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.
>

Or, make use of the after-directory to override the plugin mappings
rather than defining them in your .vimrc (if needed).

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: