added tex autocmd

This commit is contained in:
Ahir Reddy 2013-07-28 23:43:07 -07:00 committed by Ahir Reddy
commit 4e913374b3

6
.vimrc
View file

@ -99,6 +99,12 @@ autocmd InsertLeave * match ErrorMsg '\s\+$'
autocmd InsertEnter * call clearmatches()
autocmd BufWritePre * :%s/\s\+$//e
autocmd FileType tex set spell
autocmd FileType tex set tw=80
autocmd FileType tex set nowrap
autocmd InsertLeave *.tex highlight OverLength ctermbg=darkred ctermfg=white guibg=#FFD9D9
autocmd InsertLeave *.tex match OverLength /\%82v.*/
" automatically change window's cwd to file's dir
set autochdir