:s/a\|b/xxx\0xxx/g#Modifies"a b"to"xxxaxxx xxxbxxx":s/test/\U&file/#Modifies"test"to"TEST FILE":s/\(test\)/\U\1\efile/#Modifies"test"to"TEST file":s/\v([abc])([efg])/\2\1/g#Modifies"af fa bg"to"fa fa gb":s/\v\w+/\u\0/g#Modifies"bla bla"to"Bla Bla":s/\v([ab])|([cd])/\1x/g#Modifies"a b c d"to"ax bx x x":%s/.*/\L&/#Modifies"HTML"to"html":s/\v<(.)(\w*)/\u\1\L\2/g#Makeeveryfirstletterofaworduppercase:%s/^\(.*\)\n\1/\1/#Removeduplicatelines:%s/<\/\=\(\w\+\)\>/\U&/g#ConvertHTML-Tagstouppercase:g/^pattern/s/$/mytext#Findandappendtexttotheend:g/pattern/norm!@i#Runamacroonmatchinglines/^\(.*\)\(\r\?\n\1\)\+$#Viewtheduplicateslines/\v^(.*)(\r?\n\1)+$#Viewtheduplicateslines(verymagic):v/./,/./-j#Compressblanklinesintoablankline:g/<p1>/,/<p2>/d#Deleteinclusivelyfrom<p1>to<p2>