-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?

migrated from stackoverflow.com Nov 18 '12 at 12:38

This question came from our site for professional and enthusiast programmers.

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy