Changed indentation to use tabs consistently. UltiSnips converts them to spaces automatically if necessary.
Replaced cw1, cw2 and cw3 with a smarter cwp snippet