Skip to content

Instantly share code, notes, and snippets.

@pirey
Last active April 18, 2017 12:12
Show Gist options
  • Save pirey/2edccd97a361be2384d82fda33a8de62 to your computer and use it in GitHub Desktop.
Save pirey/2edccd97a361be2384d82fda33a8de62 to your computer and use it in GitHub Desktop.
close html tag properly
" NOTE: change 'input' with tag name
" this will insert '/' before closing the tag
" e.g <input type="text">
" will become <input type="text"/>
%s/\(input.*\)\ze>/\1\/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment