Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 1698b0b01f3ba0e2df0241560355fc8a8e13c3a8 1 parent 85ff643
@postmodern authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 .vimrc
View
4 .vimrc
@@ -16,6 +16,10 @@ autocmd FileType python set noexpandtab
" Thorfile, Rakefile and Gemfile are Ruby
autocmd BufRead,BufNewFile {Gemfile,Rakefile,Thorfile,config.ru} 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
Please sign in to comment.
Something went wrong with that request. Please try again.