Skip to content

Instantly share code, notes, and snippets.

@lmullen
Created March 13, 2014 17:41
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 lmullen/9533169 to your computer and use it in GitHub Desktop.
Save lmullen/9533169 to your computer and use it in GitHub Desktop.
Convert pandoc buffer to HTML and copy to system clipboard
" Convert pandoc buffer to HTML and copy to system clipboard
autocmd FileType pandoc nnoremap <buffer> <C-S-x> :write \| let @+ = system("pandoc -t html " . shellescape(expand("%:p")))<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment