simplify autocmds

This commit is contained in:
Thomas Ruoff
2016-09-02 23:25:40 +02:00
parent 30d9042631
commit 42746e9421

8
vimrc
View File

@@ -358,12 +358,8 @@ autocmd BufEnter * :syntax sync fromstart
"" Remember cursor position
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
"" txt, mail, human, tex
au BufNewFile,BufRead *.txt set filetype=human
au FileType human,mail,tex set wrap wm=2 textwidth=78 nocindent spell
"" Markdown
au FileType markdown set wrap wm=2 textwidth=78 nocindent spell
"" txt, mail, tex
au FileType text,markdown,mail,tex set wrap wm=2 textwidth=78 nocindent spell
"" Python
au FileType python set noexpandtab