0
I use vim on windows (GVim portable off a USB stick) and Linux (standard command-line vim) and would like to synchronise my settings (_vimrc
or .vimrc
respectively). As far as I can see (I haven't delved too deeply into it) the only difference should be the shell used for external commands.
TLDR:
- Is there a way in a vim script to test which OS it is running on?
- Are there any other incompatibilities between GVim and Linux vim as far as the
vimrc
is concerned?
Thanks in advance
@bdecaf thanks, that was part of the question, but the other conflicts could also be an issue if present. I'll take a look – Luke Moll – 2015-08-10T19:40:21.403
I have a very similar setup. As far as I can tell (g)vim itself has no problems. On windows many plugins I tried had problems with windows style paths. Also many command line tools which are standard in unix need to be installed and they all have their issues on windows. And I had to set many environment variables in windows to make things work. – bdecaf – 2015-08-10T19:51:11.563
@bdecaf okay, thank you. So as long as anything platform-specific like command-line tools are handled differently for each platform it should be fine? – Luke Moll – 2015-08-10T19:54:31.197
Overall that should be, and I wouldn't expect problems. Unfortunately on windows it's quite a mess on vim variants and implementation of the command line tools - so you will not know for sure till you try it out. – bdecaf – 2015-08-10T20:10:39.993
@bdecaf in terms of "command line tools" would that be external binaries such as
diff
? – Luke Moll – 2015-08-10T20:12:10.000