how do I detect OS X in my .vimrc file, so certain configurations will only apply to OS X?

前端 未结 7 662
庸人自扰
庸人自扰 2020-12-12 15:18

I use my .vimrc file on my laptop (OS X) and several servers (Solaris & Linux), and could hypothetically someday use it on a Windows box. I know how to detect unix gene

7条回答
  •  无人及你
    2020-12-12 15:30

    gui_macvim gui_gtk2 gui_gtk gui_win32

    There is a OS detection script somewhere on stackoverflow - more keywords to find it: win64 win95 macunix...

提交回复
热议问题