Vim 7.0 | First look at Vim 7:

"The final release of Vim 7 is just around the corner, and it brings a number of new features to the venerable editor, including spell checking, omni completion for several programming and markup languages, tab pages, undo branches, and several other features that are worth upgrading for."

gVim 7.0 Beta

As you can see, there is a tab bar (it can be repositioned). The command to invoke the tab bar is :tabnew. And to cycle through those tabs, use gt. Of course, since I am using gVim, the mouse works fine too.

Another feature is spell completion. You can activate it by issuing :setlocal spell spelllang=en_us. There are some other languages but EN_US is the only one I have tried. You can even get a nice spelling suggestion by doing z=

Finally, there is a new interface for word completion. The same commands are used to invoke it: ^N. This feature can now be tied in for some intelligent code completion via omnifunc. Update: To turn this feature on, you can do something like set filetype=on and :filetype plugin on. Enabling those two settings appears to give me some smarter text completion while I was testing it on a HTML page. You invoke the intelligent completion using Ctrl-x Ctrl-o. For instance it knows that the next tag to complete will be the one that I am currently under. The annoying thing is that for the HTML plugin, you can only scroll with the arrow keys (for me, at least) and you cannot continue typing to narrow your search.

Auto completion when you have specified the </ characters
Auto completion when only the '<' character has been typed

If you have been using vim for some time now, this should be a good upgrade. Grab the universal build for the Mac here.

Update: has a nice article detailing how to install Vim 7.0 on your mac. Also, take a look at this page that shows some of the new features of Vim in .gif files.

comments powered by Disqus