Skip to content

Instantly share code, notes, and snippets.

@danheberden
Created March 2, 2012 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danheberden/1959746 to your computer and use it in GitHub Desktop.
Save danheberden/1959746 to your computer and use it in GitHub Desktop.
function s:setupWrapping()
set wrap
set wrapmargin=2
set textwidth=72
endfunction
" md, markdown, and mk are markdown and define buffer-local preview
au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} call s:setupMarkup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment