Vim: CPP indent

This commit is contained in:
Kolan Sh 2013-04-09 13:02:46 +04:00
parent 90fc0366e5
commit dd675d0aae
1 changed files with 11 additions and 2 deletions

11
.vimrc
View File

@ -26,12 +26,21 @@ function! GnuIndent()
setlocal tabstop=8
endfunction
" Setup for the CPP coding format standard
function! CppIndent()
setlocal shiftwidth=8
setlocal tabstop=8
setlocal noexpandtab
endfunction
" Setup for the Vala coding format standard
function! ValaIndent()
setlocal shiftwidth=4
endfunction
au FileType c,cpp call GnuIndent()
au FileType c call GnuIndent()
au FileType cpp call CppIndent()
au FileType vala,vapi call ValaIndent()
" отключение бэкапов