how do I get vim home directory?
- by nsharish
I wanted to set VIMHOME variable this way(common to windows and linux),
let $VIMHOME=expand("%:p")."/..",
so that VIMHOME is "~/.vim" in linux or "path/to/vimfiles" in windows.
I put this in a var.vim file and placed this in the plugin directory.
It loads properly, but VIMHOME is set only to "./..". How do I get the full path of a file using expand?
Is there an easy way to set VIMHOME?