Skip to content

Instantly share code, notes, and snippets.

@thomaskern
Created June 3, 2011 12:38
Show Gist options
  • Save thomaskern/1006273 to your computer and use it in GitHub Desktop.
Save thomaskern/1006273 to your computer and use it in GitHub Desktop.
map <F3> :call Reformat("xml")<CR>
function! Reformat(type)
let f=a:type
%! tidy -q -i -f %
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment