GNU indents in Vim
This commit is contained in:
parent
72fba07948
commit
f5d67b412b
9
.vimrc
9
.vimrc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue