Re: Vim7 - intellisense problem

2006-06-17 Thread Bram Moolenaar

Dan Clarke wrote:

 In my workplace, our coding standard states that we have to declare our 
 variables on the next line from the variable type.  The intellisense in 
 vim7 doesn't work when it's like this.
 
 For example ...
 
 
 typedef struct
 {
   int
   i;
 }my_structure;
 
 void main (void)
 {
   my_structure
   var1;
 
   my_structure var2;
 
   var1. this doesn't work
   var2. this does work
 }
 
 
 
 I guess we're not the only place that declares variables over multiple 
 lines.
 
 Any way I can get around this?  Would be really nice to get intellisense 
 working for our projects.

This would require adjusting $VIMRUNTIME/autoload/ccomplete.vim to look
one line back for the type of a variable.  The tricky part is that you
need to avoid going a line back when the type is in the current line
(and since any ID could be a type name that's quite tricky).

-- 
TALL KNIGHT OF NI: Ni!
 Monty Python and the Holy Grail PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///


Re: Vim7 - intellisense problem

2006-05-18 Thread Aaron Griffin

On 5/18/06, Dan Clarke [EMAIL PROTECTED] wrote:

In my workplace, our coding standard states that we have to declare our
variables on the next line from the variable type.  The intellisense in
vim7 doesn't work when it's like this.


Vim7 does not have Intellisense - Intellisense is a trademarked
name.  Vim7 has Omni Completion.

Are you using the properly patched ctags?  Can you verify it works on
your system if you move the variables to the same line?

The ccomplete script simply runs through the tags file.  Have you
generated a proper tag file, and can you jump around via these tags?