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///