diff --git a/.vimrc b/.vimrc index e58850d..cfa034b 100644 --- a/.vimrc +++ b/.vimrc @@ -26,7 +26,13 @@ function! GnuIndent() setlocal tabstop=8 endfunction +" Setup for the Vala coding format standard +function! ValaIndent() + setlocal shiftwidth=4 +endfunction + au FileType c,cpp call GnuIndent() +au FileType vala,vapi call ValaIndent() " отключение бэкапов set nobackup @@ -89,6 +95,7 @@ menu Encoding.CP866 :e ++enc=cp866 menu Encoding.KOI8-U :e ++enc=koi8-u menu Encoding.UTF-8 :e ++enc=utf-8 map :emenu Encoding. +set fileencodings=utf-8,cp1251,cp866,koi8-r " вкл/выкл автоперенос set pastetoggle=