Last active
June 18, 2016 06:49
-
-
Save clarkli86/275c079f761b9229e6d0c1e1e912c940 to your computer and use it in GitHub Desktop.
VIM macro to replace the html escaping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qa | |
:%s/</</eg // e is to skip 'text not found' | |
:%s/>/>/eg | |
:%s/"/"/eg | |
:%s/&/&/eg | |
:%s/<<\(.*\)>\(.*\)<.*>>/<\2>/eg | |
q | |
// To replay on one file | |
@@a | |
// To replay on all buffers | |
:bufdo execute "@a" | write |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment