Best way to create substitution macros in vim

Viewed 305

I'd like to set up some custom auto-complete macros in vim. I'm thinking something like this (| represents the cursor position):

it<TAB>|

immediately becomes:

it("|", function () {
});

Is this possible using straight vim, or would I need a plugin? If so, is there a preferred plugin out there?

2 Answers
Related