Thursday, August 1, 2013

Set Tab to 4 Spaces in Vim

Add the following to your $HOME/.vimrc file:
set ts=4

Verification
Using vi, open an existing document or create a new one, then hit the TAB key. Your cursor should only advance 4 spaces to the right.

Courtesy of:
http://www.linuxquestions.org/questions/linux-general-1/how-to-set-tab-to-4-spaces-in-vim-399486/

No comments:

Post a Comment