Permalink
Browse files

Easier editing for Markdown files

* Automatically enable spellchecking
* Automatically wrap at 80 characters
  • Loading branch information...
1 parent 9de82eb commit 7adb1160a98dd7852d8c15593477e8efe3285986 @jferris jferris committed Dec 5, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 vimrc
View
6 vimrc
@@ -130,6 +130,12 @@ let g:html_indent_tags = 'li\|p'
" Markdown files end in .md
au BufRead,BufNewFile *.md set filetype=markdown
+" Enable spellchecking for Markdown
+au BufRead,BufNewFile *.md setlocal spell
+
+" Automatically wrap at 80 characters for Markdown
+au BufRead,BufNewFile *.md setlocal textwidth=80
+
" rspec mappings
map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>

0 comments on commit 7adb116

Please sign in to comment.