Well,  it works. I removed all the plugins in ~/.vim and installed again
with the default configuration, and the problem disappeared. Probably i was
wrong to change the configuration before.

Thanks!


2014-04-09 23:34 GMT+08:00 Gary Johnson <[email protected]>:

> On 2014-04-09, wp yao wrote:
> > Hello, everyone!
> > I am writing C program with VIM. I found the ctrl+n completion function
> doesn't
> > when a function prototype starting with "extern".
> >
> > Here is the detail:
> > If  file "a.h" contains a function prototype like "int hello_vim()",  I
> include
> > file "a.h" using "#include "a.h"  in file "b.c". And then I can type
> "hello"
> > and "ctrl+n" to auto complete by VIM.
> >
> > But if file "a.h" contains the function prototype starting with  extern
> like
> > "extern int hello_vim()",  in file "b.c" "ctrl+n" won't be work
> correctly.
> >
> > Is that any solution to deal with this problem?
> >
> > I am using the VIM  7.4 on Fedora 20.
>
> It works fine for me, using Vim 7.4.236, whether using my usual
> configuration or starting vim as
>
>     vim -N -u NONE -i NONE b.c
>
> Perhaps you're using some plugin to help with completion and it has
> a problem.  Try starting vim as above and see if you still see the
> problem.
>
> Regards,
> Gary
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to