~gpanders/dotfiles

f07365427e23c435beea5cdb80d90d4caf084a9b — Greg Anders 2 years ago cf16669
Use pandoc as markdown formatter
1 files changed, 3 insertions(+), 1 deletions(-)

M vim/.vim/after/ftplugin/markdown.vim
M vim/.vim/after/ftplugin/markdown.vim => vim/.vim/after/ftplugin/markdown.vim +3 -1
@@ 7,9 7,11 @@ let g:markdown_interp_languages = ['python', 'sh=bash', 'bash', 'ruby', 'console

if executable('pandoc')
  compiler pandoc
  setlocal formatprg=pandoc\ -f\ markdown\ -t\ markdown\ --reference-links
  let b:undo_ftplugin .= '|setl fp<'
endif

setlocal textwidth=80
setlocal textwidth=72
setlocal spell
" https://github.com/tpope/vim-markdown/issues/134
setlocal comments=n:>