Skip to main content

Questions tagged [filetype-c]

Questions about the c file type.

Filter by
Sorted by
Tagged with
8 votes
1 answer

Vim syntax highlighting for custom C types

I want to use syntax highlighting for custom C types. Based on my coding convention, types can occur in the following places: typedef type1 type2; (static | extern | register | volatile)? type ...; ...
R.L's user avatar
  • 81
5 votes
2 answers

Vim `cpp` Syntax highlighter prematurely ends macros mid-word

NOTE: This question is a "manual migration" from here: My Vim syntax highlighter for ft=cpp is prematurely ending some macros mid-line. For example: (The ...
Kyle Strand's user avatar
9 votes
1 answer

Jumping from function definition tag to prototype tag

As far as I understand Vim has a built-in support for tags (ctags in this case) Now I have a common C source and C header file. The header file has void foo(void); and the source file has void foo(...
hgiesel's user avatar
  • 1,944
4 votes
1 answer

Customize vim to automatically check function name against its prototype

I wonder if there is any method that I can use to check a function name against its prototype, which may help a lot when I make typo. For example, I once wrote a function prototype this way:void ...
Alex's user avatar
  • 1,225
2 votes
1 answer

How does ft-c-omni work and how can I make it faster?

As I was studying the various ways of doing completion in Vim 8.0, I came across the very interesting "omni-completion" feature and its 'omnifunc' option, which is specialized as ccomplete#...
PiCTo's user avatar
  • 369