-1

I'm using gVim and everytime I need to change my _vimrc file. But it is located in program files, so i can't save my edits there, because of system protection. So i copy the file to Desktop, change it, save, and move back to vim directory. Ahem. Is there any way to save directly?

3 Answers 3

1

You need to right-click gVim and click Run as Administrator.

6

Don't ever touch those files. You are supposed to put your settings into $HOME\_vimrc.

2
  • How will vim find the file there?
    – Fabricio
    Nov 18, 2012 at 10:49
  • 3
    @Fabricio :h vimrc It is where vim searches user configuration by default.
    – ZyX
    Nov 18, 2012 at 11:20
0
cmd.exe => gvim --version => your LOCAL _vimrc & _gvimrc are in the output.

You must log in to answer this question.