I have one folder synced between two computers (using one of online sync tools). I have gVim installed in this folder and I am wondering, is there a way, that I can distinguish those two computers in .vimrc file?
I know that testing with
if has("win32")
...
elseif has("macunix")
...
endif
I can check different operating systems – but is there an similar function/variable to test ie. name of the PC on which gVim is running?
I will also mention, that both PC’s are running Windows XP.
There is a vim builtin routine named hostname() to get the host machine’s name.