From 42746e94219f7a5241d16c3e9b7bdb9328bfce79 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Fri, 2 Sep 2016 23:25:40 +0200 Subject: [PATCH] simplify autocmds --- vimrc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vimrc b/vimrc index 0ed8dd2..21cde2f 100644 --- a/vimrc +++ b/vimrc @@ -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