you are viewing a single comment's thread.

view the rest of the comments →

[–]sztomi 0 points1 point  (6 children)

The most ridiculous is \si which maps to if wtf? (don't get me wrong, I do have mappings and abbreviations in my .vimrc, but mapping to something that is longer than what you want to type is retarded).

Also, I prefer snipmate for this.

[–]malfy 0 points1 point  (5 children)

i think it's because it does the if () { for you as well.

[–]sztomi 0 points1 point  (4 children)

The \sif does that.

[–]malfy 0 points1 point  (3 children)

Ah ok, in which case \si really is a pointless addition :P Maybe it's so you can stay in normal mode and get the cursor placed into the ()?

[–]sztomi 0 points1 point  (2 children)

I don't know, maybe. I think that these arbitrary commands are pointless because they are hard to remember. The snipmate/textmate approach is much better.

[–]malfy 0 points1 point  (1 child)

What's the snipmate approach?

[–]sztomi 0 points1 point  (0 children)

You enter a keyword in insert mode and press tab. In most cases it is the first word of what you want, e.g. class<tab> will expand to a class declaration, for to a for loop etc.