Skip to content

Commit

Permalink
Easier editing for Markdown files
Browse files Browse the repository at this point in the history
* Automatically enable spellchecking
* Automatically wrap at 80 characters
  • Loading branch information
jferris committed Dec 5, 2012
1 parent 9de82eb commit 7adb116
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vimrc
Expand Up @@ -130,6 +130,12 @@ let g:html_indent_tags = 'li\|p'
" Markdown files end in .md " Markdown files end in .md
au BufRead,BufNewFile *.md set filetype=markdown 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 " rspec mappings
map <Leader>t :call RunCurrentSpecFile()<CR> map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR> map <Leader>s :call RunNearestSpec()<CR>
Expand Down

0 comments on commit 7adb116

Please sign in to comment.