Linked Questions
10 questions linked to/from class & function names highlighting in Vim
829
votes
70
answers
136k
views
What are the dark corners of Vim your mom never told you about? [closed]
There are a plethora of questions where people talk about common tricks, notably "Vim+ctags tips and tricks".
However, I don't refer to commonly used shortcuts that someone new to Vim would find cool....
20
votes
3
answers
17k
views
Can I make vim do syntax highlighting on C++ headers that don't have extensions?
I have a project with a bunch of C++ header files that follow the standard C++ header naming convention; that is, a class called Foo would be declared in a file called Foo, not Foo.h or Foo.hh. Is ...
15
votes
1
answer
10k
views
Vim syntax files ... trying to understand "contains"
I'm trying to patch up a new vim syntax file for some custom format I'm using. Most of it I can understand, but the keyword "contains" is giving me trouble.
Is there anyone here who could give me an ...
7
votes
1
answer
4k
views
Coloring defined types as types
Is there any way to add syntax coloring to new types defined with typedef statements in C?
typedef struct {
int a,b;
} MyStruct;
MyStruct *InitMyStruct(MyStruct *struct, int a, int b);
^ ...
0
votes
4
answers
5k
views
Highlighting #defined value in VIM
I have XYZ highlighted in the header file where I have defined XYZ. However at the point of where it is used, XYZ is not highlighted. How would I fix this ?
I have attached two screen shots (see ...
1
vote
2
answers
4k
views
Vim syntax highlighting identifiers and functions in java
I would like to highlight identifiers and functions for java while editing in vim.
For some reason when I try to set a hi for Function or Identifier in the vimrc nothing changes.
Any ideas?
Thanks.
4
votes
2
answers
1k
views
How to disable highlight brackets in GVim
I am trying to highlight my own class name and function name in C++ via GVim.
I read and followed the link from stackoverflow. Please also check out the result link
I copied the following settting ...
0
votes
2
answers
1k
views
displaying functions in c using vi
Is there a way to display all functions in a C source file using vim. This feature is available with the brief editor. And this would help me a lot.
Note: This is not a programming question.
2
votes
3
answers
532
views
memcpy and malloc syntax highlighting in vim for c program
I did enable the vim syntax highlight in vimrc,I can see void and int keyword is different color than other code,but the problem is I cannot see the function syntax highlight, function like memcpy ...
0
votes
0
answers
265
views
Semantic hilight function names in vim
I have a file with some subroutines.
The syntax is like
subroutine sub_name_1
...
endsub
/* or optionally */
subroutine sub_name_2 {
...
}
There are called like call sub_name_1.
I can't ...