Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Lion came with a sad surprise to me. Now, every time I want to run VI on terminal, I get VIM. I hate VIM. How do I get my old and bad VI back to the system? thanks.

share|improve this question
    
It seems to be vim on SnowLeopard, too: $ which vi /usr/bin/vi $ ls -l /usr/bin/vi lrwxr-xr-x 1 root wheel 3 Nov 19 2009 /usr/bin/vi -> vim –  bneely Aug 15 '11 at 5:56
    
but the app appears different when I run. –  Desperate Developer Aug 15 '11 at 6:04
2  
"appears different" - can you clarify? –  bneely Aug 15 '11 at 6:05
1  
Haha, "...old and bad VI...", it's great to see a poster admit that :-) –  Rabarberski Aug 15 '11 at 7:31
    
@Rabarbeski - VI was king when it was created but after years it became bad and ugly. The problem is that we used to work with that and any change make you lost time specially when you don't have any to spare... VI is so bad that I even think it is good... :D –  Desperate Developer Aug 15 '11 at 12:16
show 1 more comment

2 Answers

up vote 7 down vote accepted

Vi has actually been VIM on most Linux distributions that I have used over the years. In general if you have a ~/.vimrc file that is how you tell vim to act like vim and not vi. Otherwise it should look and act just like vi, this article from 2000 has more details (yup - its been that way for a long, long time).

What specifically are you not liking about Lion's vim behavior? Running vim with the -C flag should force it into full vi compatibility mode even if a .vimrc is present.

share|improve this answer
    
That's it. Creating a .vimrc file solved the problem. Thanks. –  Desperate Developer Aug 15 '11 at 7:40
add comment

Am i the only one that is using MacVim?

http://code.google.com/p/macvim/

share|improve this answer
1  
I used to use that when I wanted gvim in X11, now I've switched to using Komodo in VI emulation mode when I want the full GUI. Thanks for reminding me though, the project looks to have come along quite a bit. I'll have to try it out again. –  cftarnas Aug 15 '11 at 16:58
    
I use it all day every day. –  Warren Pena Dec 1 '11 at 0:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.