diff --git a/.vimrc b/.vimrc index f1dec15..5227acd 100644 --- a/.vimrc +++ b/.vimrc @@ -19,6 +19,15 @@ color desert set number nmap :set invlist +" 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