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!
I thought so too, but that doesn't seem to work. Doesn't seem to use that config file.
james
2010-09-13 21:49:58
alias vi to be vi -c ~/.virc or whatever it is to source the right file. On OSX, I suspect that 'vi' is simply a symlink to vim.
dash-tom-bang
2010-09-13 22:26:24
@dash-tom-bang: Indeed!`$ vi --version` -->`VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 31 2010 13:33:49)`
thenduks
2010-09-14 12:30:12
+2
A:
Use the v:progname
variable:
if v:progname == 'vi'
" vi-compatible settings
else
" full vim settings
endif
too much php
2010-09-13 22:37:26