Skip to content

Instantly share code, notes, and snippets.

@argilzar
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save argilzar/0504e053a5351946ca31 to your computer and use it in GitHub Desktop.

Select an option

Save argilzar/0504e053a5351946ca31 to your computer and use it in GitHub Desktop.
Replace mixedcase html tags with lowercase
In vim enter
:%s/<\/\?\zs\(\a\+\)\ze[ >]/\L\1/g
Tags as well
:%s/\(<[^>]*\)\@<=\<\(\a*\)\ze=['"]/\L\2/g
From: http://vim.wikia.com/wiki/Changing_all_HTML_tags_to_lowercase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment