Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yahoohoo

macrumors newbie
Original poster
Mar 17, 2011
23
0
I just found the command vi does not work in Terminal (SL 10.6.7):


No idea what I've done with the system. Can anyone help me out?
 

Attachments

  • Screen shot 2011-03-22 at 7.30.14 PM.png
    Screen shot 2011-03-22 at 7.30.14 PM.png
    13.7 KB · Views: 935
Do this:

cd /usr/bin
ls -l vi*

post output.

Mine looks like this:

Code:
ls -l vi*
lrwxr-xr-x  1 root  wheel        3 May  5  2010 vi -> vim
lrwxr-xr-x  1 root  wheel        3 May  5  2010 view -> vim
-rwxr-xr-x  1 root  wheel  2819728 Aug 11  2010 vim
lrwxr-xr-x  1 root  wheel        3 May  5  2010 vimdiff -> vim
-rwxr-xr-x  1 root  wheel     2084 Feb 11  2010 vimtutor
-r-xr-xr-x  1 root  wheel    35008 May 18  2009 vis
 
Do this:

cd /usr/bin
ls -l vi*

post output.

Mine looks like this:

Code:
ls -l vi*
lrwxr-xr-x  1 root  wheel        3 May  5  2010 vi -> vim
lrwxr-xr-x  1 root  wheel        3 May  5  2010 view -> vim
-rwxr-xr-x  1 root  wheel  2819728 Aug 11  2010 vim
lrwxr-xr-x  1 root  wheel        3 May  5  2010 vimdiff -> vim
-rwxr-xr-x  1 root  wheel     2084 Feb 11  2010 vimtutor
-r-xr-xr-x  1 root  wheel    35008 May 18  2009 vis

vim and vimtutor are missing.

Edit: Problem solved!!!
 

Attachments

  • Screen shot 2011-03-22 at 8.21.28 PM.png
    Screen shot 2011-03-22 at 8.21.28 PM.png
    20.4 KB · Views: 361
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.