How to make VIM settings computer-dependent in .vimrc?
Posted
by
Paperflyer
on Super User
See other posts from Super User
or by Paperflyer
Published on 2010-10-01T09:46:37Z
Indexed on
2011/01/04
11:55 UTC
Read the original article
Hit count: 252
I share my VIM configuration file between several computers. However, I want some settings to be specific for certain computers.
For example, font sizes on the high-res laptop should be different to the low-res desktop. And more importantly, I want gVIM on Windows to behave more windowsy and MacVim on OSX to behave more maccy and gVIM on Linux to just behave like it always does. (That might be a strange sentiment, but I am very used to switch mental modes when switching OSes)
Is there a way to make a few settings in the .vimrc
machine- or OS-dependent?
© Super User or respective owner