GNU indents in Vim

This commit is contained in:
Kolan Sh 2012-06-27 12:57:09 +04:00
parent 72fba07948
commit f5d67b412b
1 changed files with 9 additions and 0 deletions

9
.vimrc
View File

@ -19,6 +19,15 @@ color desert
set number
nmap <F6> :set invlist<cr>
" Setup for the GNU coding format standard
function! GnuIndent()
setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1
setlocal shiftwidth=2
setlocal tabstop=8
endfunction
au FileType c,cpp call GnuIndent()
" отключение бэкапов
set nobackup
" set backup