diff --git a/.vimrc b/.vimrc index dee7170..b3b146c 100644 --- a/.vimrc +++ b/.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() +