BlackMax macrumors 6502a Original poster Jan 14, 2007 901 0 North Carolina May 2, 2009 #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.
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.
K kainjow Moderator emeritus Jun 15, 2000 7,958 7 May 2, 2009 #2 Are you using an editor like vi or emacs?
BlackMax macrumors 6502a Original poster Jan 14, 2007 901 0 North Carolina May 3, 2009 #3 I'm using vi. Thanks.
K kainjow Moderator emeritus Jun 15, 2000 7,958 7 May 3, 2009 #4 This worked for me: create a ~/.vimrc file and put in it Code: set tabstop=4 and then reopen vi.
BlackMax macrumors 6502a Original poster Jan 14, 2007 901 0 North Carolina May 3, 2009 #5 Worked great. Thanks!
V Virtuo macrumors member Feb 12, 2009 44 0 Boston, MA May 7, 2009 #6 kainjow said: This worked for me: create a ~/.vimrc file and put in it Code: set tabstop=4 and then reopen vi. Click to expand... This is easier. Code: echo set tabstop=4 >> ~/.vimrc
kainjow said: This worked for me: create a ~/.vimrc file and put in it Code: set tabstop=4 and then reopen vi. Click to expand... This is easier. Code: echo set tabstop=4 >> ~/.vimrc