SirVer/ultisnips — pull request #35 by aschrab (2012-11-22 01:42:58+00:00)
Title: Add option for stripping of trailing whitespace

Add a buffer option which, if set, will cause trailing whitespace to be
stripped from lines before jumping to the next tab stop.

When used with a snippet like the following this will allow the text
from the $1 tabstop to be removed and have the space in front of that
automatically deleted when the user jumps to $3. This will work even if
using the same key for snippet expansion and jumping to the next
tabstop, whereas if the space was manually removed the key would cause
the snippet to be expanded again.

snippet do
do ${1:|${2:args}|}
$3
end
$0
endsnippet