Thursday, May 04, 2006

Vim 7 Beta: Review and Screenshots

I am sure by now all Vim fans would have read the good Joe 'Zonker' Brockmeier's Vim 7 Beta review. The installation is straightforward -- though I have to edit src/Makefile to get the features I want -- and now you even have a script to install it for you.

One of the cool features is the Omni completion. This is something all the big IDE already have. Look at the pink menu shown in the screenshot showing Omni in action with a custom Ruby class. It works surprisingly well. You can add your own omni completion scripts as well.

From the help pages:

Currently supported languages:
C |ft-c-omni|
(X)HTML with CSS |ft-html-omni|
JavaScript |ft-javascript-omni|
PHP |ft-php-omni|
Ruby |ft-ruby-omni|
SQL |ft-sql-omni|
XML |ft-xml-omni|
any language wih syntax highligting |ft-syntax-omni|

And peeping into the insides, I found that the autocomplete files. I don't see Java autocomplete yet, hmmm.

sey@babyunix:/usr/local/share/vim/vim70g$ ll autoload/*complete.vim
-rw-r--r-- 1 root root 16305 2006-05-08 11:05 autoload/ccomplete.vim
-rw-r--r-- 1 root root 16533 2006-05-08 11:05 autoload/csscomplete.vim
-rw-r--r-- 1 root root 24041 2006-05-08 11:05 autoload/htmlcomplete.vim
-rw-r--r-- 1 root root 27028 2006-05-08 11:05 autoload/javascriptcomplete.vim
-rw-r--r-- 1 root root 292462 2006-05-08 11:05 autoload/phpcomplete.vim
-rw-r--r-- 1 root root 19949 2006-05-08 11:05 autoload/pythoncomplete.vim
-rw-r--r-- 1 root root 13019 2006-05-08 11:05 autoload/rubycomplete.vim
-rw-r--r-- 1 root root 21795 2006-05-08 11:05 autoload/sqlcomplete.vim
-rw-r--r-- 1 root root 9252 2006-05-08 11:05 autoload/syntaxcomplete.vim
-rw-r--r-- 1 root root 14458 2006-05-08 11:05 autoload/xmlcomplete.vim
Omni listing all the classes for Ruby, Ctrl+X Ctrl+O

Plain old word completion, Ctrl+P

More word completion, notice the fullpath to the files of the autocomplete words come from.

No comments: