Added C environment
This commit is contained in:
parent
c224651d5c
commit
8629434e19
10
.vimrc
10
.vimrc
|
@ -69,6 +69,7 @@ function! ReStructuredSettings()
|
|||
set spell spelllang=en_au
|
||||
endfunction
|
||||
autocmd BufNewFile,BufFilePre,BufRead *.rst :call ReStructuredSettings()
|
||||
autocmd BufNewFile,BufFilePre,BufRead *.txt :call ReStructuredSettings()
|
||||
|
||||
" My LaTeX environment:
|
||||
function! LaTeXSettings()
|
||||
|
@ -114,3 +115,12 @@ function! MuttSettings()
|
|||
endfunction
|
||||
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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue