开发者

Is there a way to make vi and vim behave differently on OSX?

Is there a way to have two separate config files or somehow disassociate vi and vim on Mac OSX? Simply, I want vi 开发者_开发技巧and vim to open up in 2 different window sizes. Thanks!


Use the v:progname variable:

if v:progname == 'vi'
    " vi-compatible settings
else
    " full vim settings
endif


Should be as simple as using .virc and .vimrc as appropriate.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜