LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to set TAB to 4 spaces in vim? (https://www.linuxquestions.org/questions/linux-general-1/how-to-set-tab-to-4-spaces-in-vim-399486/)

kornerr 01-04-2006 11:35 AM

How to set TAB to 4 spaces in vim?
 
That's the question.
Thanks.

kornerr 01-04-2006 11:48 AM

It's
Code:

set ts=4

IBall 01-05-2006 01:26 AM

If you want that to be permanent, add the above line to ~/.vimrc.

In case you are interested, have a look at http://www.vim.org/scripts/script.php?script_id=237 for some other vim settings that you may find useful.

I hope this helps
--Ian


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