vi not found

Discussion in 'Mac Basics and Help' started by yahoohoo, Mar 22, 2011.

  1. yahoohoo macrumors newbie

    Joined:
    Mar 17, 2011
    #1
    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?
     

    Attached Files:

  2. ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #2
    Did you somehow break your path?

    /usr/bin/vi

    should open it.
     
  3. yahoohoo thread starter macrumors newbie

    Joined:
    Mar 17, 2011
    #3
    Still not working. No such file or directory. Could you check whether you have the file vi under /usr/bin?
     
  4. waynep macrumors 6502

    Joined:
    Dec 31, 2009
    #4
    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
     
  5. larryj macrumors member

    Joined:
    Jul 7, 2007
    Location:
    Atlanta
    #5
    I updated to 10.6.7 last night. vi is in /usr/bin/.
     
  6. yahoohoo, Mar 22, 2011
    Last edited: Mar 22, 2011

    yahoohoo thread starter macrumors newbie

    Joined:
    Mar 17, 2011
    #6
    vim and vimtutor are missing.

    Edit: Problem solved!!!
     

    Attached Files:

  7. yahoohoo, Mar 22, 2011
    Last edited: Mar 22, 2011

    yahoohoo thread starter macrumors newbie

    Joined:
    Mar 17, 2011
    #7
    I lost the two files in /usr/bin/:

    vim
    vimtutor

    Edit: Problem solved!!!
     

Share This Page