Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from Nov 18 '12 at 12:38

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

up vote 1 down vote accepted

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

share|improve this answer

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

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

You must log in to answer this question.