Is vim better installed in C:Program files

Posted on

QUESTION :

I’ve installed gVim and the install has gone into here:

C:Program Files (x86)Vim

Would there have been advantages to installing it in the following location?:

C:UsersmyNameVim

ANSWER :

Vim is not as weird or complicated or mysterious as you seem to believe it is.

You let the installer put Vim and its default runtime wherever it thinks Vim should be installed and customize it by dropping plugins/colorschemes in $HOMEvimruntime ($HOME/.vim on UNIX-y systems) and setting options in $HOME_vimrc ($HOME/.vimrc on UNIX-y systems).

That’s all there is to it.

As long as your system knows where the Vim executable is located, you have no business messing with that executable and/or its support files: where they are and what they contain is completely irrelevant to you and your configuration effort.

Program Files is the canonical and recommended place for system-wide software installations on Windows. Especially on “real” multi-user systems (like Unixes), some users may not have sufficient permissions and have to do a user-local installation in their home directory, but that’s rarely the case on Windows.

Rather, I guess your real question is about installing plugins and configuring Vim. Again, this is not dependent on the Vim installation location, but rather governed by the 'runtimepath' option. Admittedly, it’s complex (and therefore also powerful!) in Vim, but you’ll find many resources around this topic (starting with the excellent built-in :help).

Leave a Reply

Your email address will not be published.