Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Nov 18 '12 at 12:38

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

3 Answers 3

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
3  
@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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.