richard.j.dale / gmail.com a ñÄrit :
> On May 29, 8:22 am, lolveley <lolve... / yahoo.fr> wrote:
>   
>> Hello,
>>
>> I have a little/big problem with vim and ruby.
>> little because almost all works fine : on debian I installed
>> vim,vim-ruby,ruby1.8,qt4-qtruby, and Qt.
>> on vim I have the syntax coloring that's working, and a program like "print
>> require 'Qt4' " returns true : Qt4 is recognized.
>>
>> but I have not the completion for Qt : if I enter "a=Qt:: " +CTRL X+CTRL O,
>> I have the messsage "pattern not found" .
>>
>> on vim I have:
>> :set ofu?     =>  omnifunc=rubycomplete#Complete
>> :set ft?       =>  filetype=ruby
>> :filetype      => all 3 are ON
>>
>> can you help me to have the completion?
>> or maybe I have made a mistake, an oversight.
>>     
> Code completion with QtRuby will only work if you are interacting with
> running code with a tool such as irb. It won't work with static
> environments like vim. So I would run irb as well as vim to try things
> out, and also use the command line 'rbqtapi' tool to introspect the
> QtRuby api.
>
> -- Richard
>
>
>   
well, it's amazing : I have succeeded in having the completion of Qt 
classes and methods by typing : let g:rubycomplete_buffer_loading=1.

olivier.

	

	
		
___________________________________________________________________________ 
Yahoo! Mail rñÊnvente le mail ! DñÄouvrez le nouveau Yahoo! Mail et son interface rñ×olutionnaire.
http://fr.mail.yahoo.com