浏览代码

activated spellcheck for txt files and changed some file-specific settings to local

bananicorn 5 年之前
父节点
当前提交
538eca635b
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      .vimrc

+ 8 - 1
.vimrc

@@ -119,10 +119,17 @@ autocmd!
 	au BufWritePost *.pov !povray .
 	au BufWritePost *.pov !povray .
 augroup END
 augroup END
 
 
+"for the regular text
+augroup txt
+autocmd!
+	au BufReadPost *.txt setlocal spell
+	au BufReadPost *.txt setlocal tw=80
+augroup END
+
 "for tsv files - which I like to be nicely aligned
 "for tsv files - which I like to be nicely aligned
 augroup tsv
 augroup tsv
 autocmd!
 autocmd!
-	au BufReadPost *.tsv set tabstop=20
+	au BufReadPost *.tsv setlocal tabstop=20
 augroup END
 augroup END
 
 
 "for the twig templating language
 "for the twig templating language