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.
精彩评论