La Vita è Bella

Friday, April 07, 2006

A patch for iComplete

iComplete is a code completion system, can be used with the omni-completion feature of vim 7, to provide language sensitive code completion.

It uses Exuberant-ctags to generate tag file. Exuberant-ctags is also a popular extension tool for vimmers. But the tag file generated by iComplete is different from the one we usually use, so it makes a problem sometimes.

I've made this patch to provide a additional command line parameter: tagfile(t) for iComplete, in which we can specify the tag filename used by iComplete (default to `tags'), so we can avoid break the tags file.

I also added a variable "g:cppcomplete_tagfile" to represent this option in vim

To apply this patch, first you should get the source of iComplete either by the source tarball or via SourceForge CVS, and the run the following command at the root directory:

patch -p1 -i icomplete.patch

I've submitted this patch to the author of iComplete, and it's supposed to be applied to the official branch soon.

Here's the patch file: icomplete.patch



tags: , ,

01:24:57 by fishy - opensource - Permanent Link

Revision: 1.0/1.0, last modified on 2006-04- 7 @ 16:24.

Karma: 2 (51.09% out of 92 were positive) [+/-]

You can subscribe to RSS 2.0 feed for comments and trackbacks

Trackbacks:
There are currently no trackbacks for this item.
Use this TrackBack url to ping this item (right-click, copy link target). If your blog does not support Trackbacks you can manually add your trackback by using this form.

yasker

yasker wrote:

I have ever thought there is no way to auto complete code in vim.....

Friday, April 07, 2006 09:39:02

fishy

fishy wrote:

test comment mailer

Wednesday, May 03, 2006 15:12:15

fishytest

fishytest wrote:

test comment again

Wednesday, May 03, 2006 15:41:15

Add Comment



May the Force be with you. RAmen