I like to have comments like this in my C code:
/********************************************************
* Blah
********************************************************/
But I get tired of typing all those asterisks, and copy/pasting can also get annoying. I was wondering if I could possibly create a macro with Vim so that if I press (for example) CTRL+L, it’ll automatically insert that structure in my code and align the cursor in the middle (where the actual comment is written).
Any advice would be appreciated. Thanks!
Take a look at snipmate, a vim plugin for TextMate-like snippets.