News for hackers. Stuff that matters.
Re:Ask HN: Rate my Vim Script: snipMate.vim by aditya on Thursday February 12, 2009 @03:02PM (#478898)
I'm sorry, how is this different from just having an abbreviation using iab?
Re:Ask HN: Rate my Vim Script: snipMate.vim by Harkins on Thursday February 12, 2009 @04:07PM (#478986)
Abbreviations expand into a single output. TextMate Snippets expand that output and then make it trivial to move between the parts you'll want to customize.

So a 'for' abbreviation would output: for (;;) { } and leave the cursor after the }.

A 'for' snippet would output the same thing, but you could bounce on the tab key to move between the three parameters to for, the body of the loop, and the line after the loop.

Re:Ask HN: Rate my Vim Script: snipMate.vim by etal on Thursday February 12, 2009 @09:40PM (#479333)
vim-latexsuite does something similar for creating environments. The default is Ctrl-J for jumping to the next section that needs to be filled in. The procedure takes some getting used to; I didn't like it at first.