Wednesday, April 9, 2014

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

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.

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