LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do you change how many spaces contains a TAB character in the console (tty) ? (https://www.linuxquestions.org/questions/linux-software-2/how-do-you-change-how-many-spaces-contains-a-tab-character-in-the-console-tty-445905/)

zahadumy 05-17-2006 10:28 PM

How do you change how many spaces contains a TAB character in the console (tty) ?
 
I like sometimes working in the console because I have to do some scripting, but my problem is the TAB is too large, 8 characters I think. Is it possible to change this? Thank you.

chrism01 05-18-2006 01:16 AM

If you mena the num of spcaes in a tab created in a given editor, it depends on the editor.
For vi/vim, I use the following .exrc file:

set showmatch
set tabstop=4
set shiftwidth=4
set noautoindent

in my home dir.

zahadumy 05-18-2006 02:09 AM

Thanks.
 
Thanks. It works.


All times are GMT -5. The time now is 03:56 PM.