Tagged: vim

Query an option


Suffix the option name with a question mark to query its current value, like this: ”:verbose set optname?”. The ”verbose” command prints additional information about how/where the option was last set.

Vim 7


I finally got around to compiling Vim7, and I must say I’m impressed. This is not an invitation for editor flame wars, or claims that M$/other commercial products have been doing this for years now (I will defend those arguments later). For now, I just want to show you guys how awesome Vim7 is.

Two of the most wanted features in Vim have been spell checking and automatic code completion, and Vim7 has excellent support for both of them, and much much more!

Here’s a screenshot of code-completion in action. Its on a Python script, but Vim7 includes support for C/C++/Java/CSS/XML/HTML/JS and of course its very easy to add support for other languages (and remember that Vim7 is still in //alpha// testing officially).

[[http://www.flickr.com/photos/diwaker/97796840/|{{http://static.flickr.com/42/97796840_8dd58b1a7c_m.jpg}}]]

Click on the image to see some notes on the image. And here’s a screenshot of the spell checker in the action. Note the curly red lines under the misspelt word and the spell check suggestions:

[[http://www.flickr.com/photos/diwaker/97796855/in/photostream/|{{http://static.flickr.com/36/97796855_0b1a202d34_m.jpg}}]]

One important thing to note is that **all** these functions work **both in GUI and console modes**. Now, can any of those bulky, bloated IDE’s do this? I do a //lot// of editing over remote shells, and this kind of portability is just perfect for my needs. More on this later.

For now, I’m just pleased that I have Vim7 :-)