开发者

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

开发者 https://www.devze.com 2023-01-15 20:09 出处:网络
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

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

精彩评论

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