Pretty much the title. When I edit my vimrc
file and it has the line
call pathogen#infect()
the changes don't take effect until I restart vim. This holds true even if I don't have the bundle
folder in ~/.vim
, and if this line is at the end or beginning of the vimrc
file. I guess this shouldn't be the case, so what's going on?
Edit to clear things:
I'm trying to reload the .vimrc
file using :source $MYVIMRC
which succeed when I try this without the pathogen
line.
Edit: some details
This is on a freshly installed Linux mint, and the problem appeared on my various attempts to :noremap
, and :iabbreviate
commands. Commands that change the appearance (e.g. set number
seem to work)
Edit: some more details
Here is an example of something that doesn't work with my .vimrc
file
:set number! " To indicate that I do reload the file
" replacing gamma with \gamma, was here when opened gvim
:autocmd FileType tex :iabbrev <buffer> gamma \gamma
" replacing lambda with \lambda added after launching gvim
:autocmd FileType tex :iabbrev <buffer> lambda \lambda
call pathogen#infect()
Adding the lambda file, and then running source ~/.vimrc
with a tex
file open in the background resulted with no effect when typing lambda
. I had to restart gvim.
:so ~/.vimrc
(or something of the sort).source
command.set number
) are executed then you cannot say that yourvimrc
is not being reloaded. My guess is that you are somehow misunderstanding the expected behavior from your map and abbreviation commands (possibly a XY Problem). But it is not possible to know without the details.