add .vimrc and src/.ycm_extra_conf.py

This commit is contained in:
Julian Orth
2014-03-12 17:12:24 +01:00
committed by Thiago de Arruda
parent c3a88eb8ea
commit 7740bdecea
4 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
set modelines=0
augroup LOCAL_SETUP
autocmd!
autocmd BufRead,BufNewFile *.h set filetype=c
autocmd FileType c setlocal expandtab
autocmd FileType c setlocal shiftwidth=2
autocmd FileType c setlocal softtabstop=2
autocmd FileType c setlocal textwidth=80
autocmd FileType c setlocal comments=:///,://
augroup end