doc: Update sample Vim config with suitable (function) indentation settings.

This commit is contained in:
Diego Biurrun 2012-02-28 20:44:41 +01:00
parent a3dbd459ff
commit b553a425fb

View File

@ -215,6 +215,8 @@ the following snippet into your @file{.vimrc}:
set expandtab set expandtab
set shiftwidth=4 set shiftwidth=4
set softtabstop=4 set softtabstop=4
set cindent
set cinoptions=(0
" allow tabs in Makefiles " allow tabs in Makefiles
autocmd FileType make set noexpandtab shiftwidth=8 softtabstop=8 autocmd FileType make set noexpandtab shiftwidth=8 softtabstop=8
" Trailing whitespace and tabs are forbidden, so highlight them. " Trailing whitespace and tabs are forbidden, so highlight them.