mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
added tex autocmd
This commit is contained in:
parent
906fc99bf6
commit
4e913374b3
1 changed files with 6 additions and 0 deletions
6
.vimrc
6
.vimrc
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue