Vala indents

This commit is contained in:
Kolan Sh 2012-10-01 22:51:44 +04:00
parent 5252fc0b13
commit c03d0cc5a3
2 changed files with 16 additions and 1 deletions

15
.vim/indent/vala.vim Normal file
View File

@ -0,0 +1,15 @@
" Vim indent file
" Language: C
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2005 Mar 27
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
finish
endif
let b:did_indent = 1
" C indenting is built-in, thus this is very simple
setlocal cindent
let b:undo_indent = "setl cin<"

2
.vimrc
View File

@ -26,7 +26,7 @@ function! GnuIndent()
setlocal tabstop=8
endfunction
au FileType c,cpp call GnuIndent()
au FileType c,cpp,vala call GnuIndent()
" отключение бэкапов
set nobackup