Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 366 Bytes
" Convert selected region to HTML and copy to clipboard
" Mac OSX only
" See :help TOhtml to format configuration
"let g:html_number_lines = 0 " Disable line numbers
command! -nargs=0 -range=% CopyHtml call s:copy_html()
function! s:copy_html() abort " {{{
w !textutil -format html -convert rtf -stdin -stdout | pbcopy
endfunction " }}}