Hi,

In fact, it is a C++ program, as #include <iostream> might suggest. The comment should say "A nonsense C++ file", sorry. In C++ one doesn't need to write 'class', 'struct' or 'union' in variables definitions. Do you also mean that ccomplete doesn't support C++ yet? 10e15 C++ users in this galaxy are rather disappointed ;-)

Keep up good work with Vim.


Bram Moolenaar wrote:
Kyku wrote:

Changing SuperTab.vim fixed the problem, thank you very much. I have one more problem with omnicomplete usability. Given the following snippet, it completes the S<C-xC-o>creen( function but refuses to complete after p.W<C-xC-o>idth in main().

#include <iostream>

// A nonsense C file.

struct Rectangle
{
    unsigned short X,  Y;
    unsigned short Width, Height;
};

Rectangle Screen()
{
    Rectangle rec = { 0, 0, 1280, 1024 };
    return rec;
}

int main()
{
    Rectangle p;
    // some more editing here with cool omnicompletions.
}

Your syntax is wrong: you define "struct Rectangle" but then use
"Rectangle" without "struct".


Reply via email to