I use Vim (gVim to be precise) to write and edit files. When executing the editor directly, everything works fine. But if I open a file using the "Open with..." command on Windows, the _vimrc settings do not load.

How can I fix this ?

I added the _gvimrc file as well, but it doesn't seem to do any better.

  • Where are those _vimrc and _gvimrc? – romainl May 17 '14 at 16:03
  • They're at $VIM/*, which is, in my case, Programs/Vim/*. – ahmed May 17 '14 at 16:14
  • 2
    They shouldn't. Their correct location is $HOME\_vimrc and $HOME\_vimrc. And put your plugins in $HOME\vimfiles. If you have 7.4, you should put your _vimrc and _gvimrc in $HOME\vimfiles. – romainl May 17 '14 at 20:53
  • THey could be, though. Vim looks there too. That does not explain why Vim wouldn't look there. One thought: do you have multiple installed versions of Vim? Perhaps the "open with..." dialog is using a different version than you expect. – Ben May 18 '14 at 2:10
  • 1
    @romainl Would it be correct to say you should remove the leading underscores when placing in $HOME\vimfiles? – FDinoff May 18 '14 at 2:45

Your Answer

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

Browse other questions tagged or ask your own question.