2

How can I change $VIM and $VIMRUNTIME directory after building it from sources? It seems both directory always follow vim.exe and gvim.exe directory.

update: I built it in windows 8.1 x64 with MinGW32.

1
  • Why would you want to do this? If you do a proper installation, the runtime should be next to the Vim executables. Commented Mar 28, 2015 at 20:10

1 Answer 1

2

Something like this:

:echo $VIMRUNTIME /usr/share/vim/vim74 :let $VIMRUNTIME="/tmp" :echo $VIMRUNTIME /tmp 

Or add to .vimrc:

let $VIMRUNTIME="/tmp" 
Sign up to request clarification or add additional context in comments.

4 Comments

Vim can't remember that. It reset when vim closed.
You can put that to .vimrc.
That's my point. I want to put .vimrc file in separate directory from it's bin file.
No problem. Leave the default .vimrc with the $VIMRUNTIME setting and add a second line so /path/to/other/vimrc.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.