I am a new to Vim and know little about programming.
The situation is this: I have both Vim and Gvim installed. From within Vim I think I have been able to use the :e $MYVIMRC
command to do some edits I saw online. I was able to save it I think. I think so because the instructions I added show up when I open up Vim.
However, now I want to also change the Vimrc for things related to my GVim (in particular I want to use GVim to to take advantage of python support). Here's where the weirdness happens for me. I try and use :e $MYVIMRC
but when I open it up
- The vimrc file does not reflect any changes that I made from within Vim.
- The GVim program does not allow me to write to it. In fact, when I search for my vimrc file in my computer, I see only one file and it looks like the one that opens up in GVim only.
I'd like to understand:
- Why it appears I have to vimrc files though both programs echo back the same location
- How I can make changes to the vimrc file from the vantage point of GVim.
I have searched the site but couldn't resolve it myself. Thank you for any help/tips.
.gvimrc
. Just to be clear: you've tried:echo $MYVIMRC
in both Vim and gVim and they give the same result?:e $MYVIMRC$
(with a trailing$
) but it should just be:e $MYVIMRC
.C:\Users\user\.vimrc
for that reason.vimrc
.