Added C environment

This commit is contained in:
Serĉanto de Scio 2016-10-27 19:39:51 +10:00
parent c224651d5c
commit 8629434e19

10
.vimrc
View file

@ -69,6 +69,7 @@ function! ReStructuredSettings()
set spell spelllang=en_au set spell spelllang=en_au
endfunction endfunction
autocmd BufNewFile,BufFilePre,BufRead *.rst :call ReStructuredSettings() autocmd BufNewFile,BufFilePre,BufRead *.rst :call ReStructuredSettings()
autocmd BufNewFile,BufFilePre,BufRead *.txt :call ReStructuredSettings()
" My LaTeX environment: " My LaTeX environment:
function! LaTeXSettings() function! LaTeXSettings()
@ -114,3 +115,12 @@ function! MuttSettings()
endfunction endfunction
autocmd BufNewFile,BufFilePre,BufRead mutt-* :call MarkdownSettings() autocmd BufNewFile,BufFilePre,BufRead mutt-* :call MarkdownSettings()
" Settings for my C environment:
function! CSettings()
set tabstop=2
set shiftwidth=2
set expandtab
set textwidth=79
endfunction
autocmd BufNewFile,BufFilePre,BufRead *.c :call CSettings()