Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
" 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 " {{{
'<,'>TOhtml
w !textutil -format html -convert rtf -stdin -stdout | pbcopy
bdelete!
endfunction " }}}