Sunday, September 8, 2013

Re: Trailing space with UltiSnips snippet

On 2013–09–08 Michael Henry wrote:

> > But this snippet should also work without an argument, but it leaves
> > a trailing space:
>
> I think the "s" flag may be what you're looking for. From the
> UltiSnips help:
>
> s Remove whitespace immediately before the cursor at the end of a line
> before jumping to the next tabstop. This is useful if there is a
> tabstop with optional text at the end of a line.

That was exactly what I was looking for. I apparently missed that
while reading the manual. Thanks a lot.

Marco

No comments: