Mike Bradley wrote:
PS

Another way I've been able to do this type of thing is
to  set my $HOME directory to a location where my .vim
folder and .vimrc are located and then changing it
back after VIM has loaded.  I put all this in a
script, which is fine if no one else has a better
solution, but it seems like there should be some way
to do it easily from inside of VIM.



This hints to a solution, at least for Unix-like systems (including Linux and Cygwin), if they can "mount" the remote directory. Just make soft links from the local location to the remote file or directory; and remember that the syntax is somewhat counter-intuitive: it's "ln -s <target> [link name]" (that's a Unix command, not a Vim command), and it's better first to cd to the directory where the link shall reside ($HOME for .vimrc and .vim). So you would need no more fancy footwork with $HOME, Vim would just follow the link from there to the remote .vimrc (and .gvimrc if any), and ~/.vim would link to the remote .vim directory, which would remain available as long as Vim (and the network) are up.

Of course, if by any ill chance the network goes down, you would find yourself without a vimrc and without a ~/.vim (I gather that your $VIMRUNTIME is mounted locally).


Best regards,
Tony.

Reply via email to