Wednesday, 5 February 2014

OS Detection in Your Vim Configuration

If you use your vim configuration across multiple machines, and even multiple operating systems (OS), then you may need to have separate configuration based on that OS.

Using has(), do something like this in your ~/.gvimrc:



In fact, there is a lot more you can set up conditionals for.  To discover all the options use the following in vim:

    :help feature-list

No comments:

Post a Comment