Browse files

Wrap text to 80 columns in *.md or *.txt files.

  • Loading branch information...
postmodern committed Apr 3, 2013
1 parent 85ff643 commit 1698b0b01f3ba0e2df0241560355fc8a8e13c3a8
Showing with 4 additions and 0 deletions.
  1. +4 −0 .vimrc
4 .vimrc
@@ -16,6 +16,10 @@ autocmd FileType python set noexpandtab
" Thorfile, Rakefile and Gemfile are Ruby
autocmd BufRead,BufNewFile {Gemfile,Rakefile,Thorfile,} set ft=ruby
+" Wrap text to 80 columns for *.md and *.txt files
+autocmd BufNewFile,BufRead *.txt set textwidth=80
+autocmd BufNewFile,BufRead *.md set textwidth=80
" Enable spellchecking for *.md and *.txt files
autocmd BufNewFile,BufRead *.txt set spell
autocmd BufNewFile,BufRead *.md set spell

0 comments on commit 1698b0b

Please sign in to comment.