Wednesday, April 9, 2014

Re: ctrl+n doesn't work when a function prototype starting with extern

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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: