Setting the viminfo path in gVim for portability (Windows)
- by Will Vousden
I'm trying to make my gVim installation as portable as possible, and in doing so I want to put the _viminfo file in the $VIM directory rather than $HOME. I'm pretty new to hacking vimrc configurations, but here's what I've been trying:
let viminfopath=$VIM."\\_viminfo"
execute "set viminfo='1000,n".escape(viminfopath, ' ')
" Some other…