View Full Version : How Do You Change the Tab Indention in Terminal?
BlackMax
May 2, 2009, 05:15 PM
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. :)
kainjow
May 2, 2009, 07:34 PM
Are you using an editor like vi or emacs?
BlackMax
May 3, 2009, 07:25 PM
I'm using vi. Thanks.
kainjow
May 3, 2009, 07:51 PM
This worked for me: create a ~/.vimrc file and put in it set tabstop=4 and then reopen vi.
BlackMax
May 3, 2009, 11:17 PM
Worked great. Thanks!
Virtuo
May 7, 2009, 10:11 PM
This worked for me: create a ~/.vimrc file and put in it set tabstop=4 and then reopen vi.
This is easier. :)
echo set tabstop=4 >> ~/.vimrc
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.