Originally Posted by
jeffcobb
As for autocompletion and such I guess I know my target platform and language well enough that autocompletion gets in the way.
Yeah, I prefer the less obtrusive variants. Also I don't use ctags, since that just clutters up the possibilities. Without ctags, you just get choices from within file scope, ie, mostly names of variables, and only when you use a hotkey, which is nice and simple. Saves having to type "totalNodes" over and over, etc.
I have used omnicppcomplete a little tho, the C++ "intellisense" style plug-in for vim. That one is intrusive (pops up and evaluates as you type, like google) and is configurable if you like that.
In addition to autocompletion, abbreviations are great, you define these in a file somewhere, or on the fly:
Code:
:iab $A $ARGS{
:iab <a <a href=" ">
:iab GRP Glib::RefPtr<
:iab #i #include <
:iab KV while (my ($k, $v) = each (%)) {
:iab PF print "$_\n" foreach (@
:iab PR fprintf(stderr,"
:iab $S $self->{''}
:iab UC unsigned char
:iab VI vector< >::iterator it = xxx.begin(), end = xxx.end();
:iab WI while(it != end) {
Type a couple of characters then a space.
"Surround" is a good plugin for wrapping words or lines within tags or braces or quotes.
And snippets is pretty great, it has a lot of programmable potential, qv:
snipMate.vim Introductory Screencast on Vimeo
has some very clever aspects.
There's tons of stuff like this, they're easy to install, try out, and remove if you don't like it.