How Do You Change the Tab Indention in Terminal?

Discussion in 'Mac Programming' started by BlackMax, May 2, 2009.

  1. BlackMax macrumors 6502a

    BlackMax

    Joined:
    Jan 14, 2007
    Location:
    North Carolina
    #1
    I'm writing some python scripts using terminal and would like to change the tab indention from 8 spaces to 4 spaces. Does anyone know how you change the tab indention in terminal?

    Thanks. :)
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
  3. BlackMax thread starter macrumors 6502a

    BlackMax

    Joined:
    Jan 14, 2007
    Location:
    North Carolina
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    This worked for me: create a ~/.vimrc file and put in it
    Code:
    set tabstop=4
    and then reopen vi.
     
  5. BlackMax thread starter macrumors 6502a

    BlackMax

    Joined:
    Jan 14, 2007
    Location:
    North Carolina
  6. Virtuo macrumors member

    Joined:
    Feb 12, 2009
    Location:
    Boston, MA
    #6
    This is easier. :)
    Code:
    echo set tabstop=4 >> ~/.vimrc
     

Share This Page