Ruby Interface for Vim
There are a number of frustrating bugs in the Ruby interface for Vim that make it difficult to utilize effectively. Deleted buffers are still accessible to the Ruby interface, and are still counted by the Buffer count class method. Additionally, changes to displayed but inactive buffers are not refreshed appropriately.
I have managed to fix the deleted buffer problem in the buffer access method and in the buffer count method. I have also managed to fix the problems with screen refresh for append and delete operations. There are probably other situations in which the the refresh is not done correctly, but I havent found them yet.
In addition to my various bug fixes, I have written an extension to the interface in native ruby that can be loaded at run-time in a vimrc file. Using my new Ruby interface extensions, I've managed to port my PyRun tools to Ruby, and make some nice improvements to them.
I plan on documenting my new Vim extensions at the moot eventually, but for now, if you are interested you can get the code from the cixar web site. To add my bugfixes to Ruby interface, get my if_ruby.c file and replace the one in your code base with it, and then recompile Vim. Then, you can download my native ruby interface extension and put it somewhere in your .vim directory. Then you just have to add a line in your vimrc file to include it.
Tags: ruby, programming, vim
Posted on 2005-01-110 comments
