July 15, 2010

vim tab and space

set smartindent
set tabstop=4
set shiftwidth=4
set expandtab

and use the following command to change existing tab to space:
:%retab

also see:

:help auto-setting


No comments:

Post a Comment