Questions tagged [vim-syntax-highlighting]
This is reserved for vim questions which focus on syntax highlighting or colorscheme files.
vim-syntax-highlighting
389
questions
2
votes
0
answers
35
views
Syntax highlighting of nested braces in vim
I am writing a vim syntax file for a yacc-like language, which contains another language in blocks delimited by braces. My problem stems from the inner language also using braces as part of its own ...
1
vote
1
answer
112
views
How do I fix the current line color using solarized vim dark mode using Termdebug?
I'm using solarized with vim and when I'm debugging (using Termdebug), the current execution line is missing:
I've been working around the issue by switching to light mode:
If I go back to dark, ...
0
votes
0
answers
133
views
neovim: setting syntax highlight popup box?
How do I set the foreground and background colors for syntax suggestions in neovim?
I am executing these commands in my config, which I'm expecting to make the list black and white.
vim.cmd('...
0
votes
0
answers
79
views
How to configure highlighting in Vim?
After upgrading Git for Windows I was surprised with the change in color scheme for Vim. Almost everything is highlighted in bold, so the text is "shouting" on me. For example committing in ...
0
votes
0
answers
82
views
Why is my region in my Neovim Syntax file unresponsive?
First of all I'm using Neovim(v0.8.1) so I don't know if it also applies to Vim.
I'm creating a syntax file with the following region :
syn region TestRegion start='^RegionStart\n^NextLineStart' end='^...
-4
votes
1
answer
416
views
How to turn off Auto highlight text in Vim editor? [closed]
In VIM text editor, everytime whenever I type ''typedef '', it gets highlighted automatically. How to fix this?
I want to turn off word highlighting property in vim.
0
votes
2
answers
78
views
Can I cascade vim syntax highlighting rules like in nano?
I have a custom file type, which contains lots of fields like
FieldName: FieldValue
I'm trying to create syntax highlighting for this filetype, in nano and vim, such that "Fieldname" ...
0
votes
3
answers
55
views
I need some help making a regex search
I am working on making a regex to recognize a function for my new programming language's syntax highlighting file for vim. I cannot for the life of me understand how to make it match this though.
it ...
0
votes
2
answers
576
views
My conceal options are not loading in vim
I have some conceal options (syntax match Normal '\.md\]' conceal cchar=]) added in a $HOME/.vim/after/syntax/base.vim.
They are not loaded when I open a file. But if i do :source $HOME/.vim/after/...
2
votes
1
answer
1k
views
Is there a way in vim to change search text highlight color in visual mode only?
(I am using the nord-vim color scheme, but this is an issue with all color schemes in vim that I've tried, and I am looking for what settings need to be changed to accomplish the desired goal)
I have ...
1
vote
2
answers
881
views
vim syntax highlighting: region that starts with "#" and end with either "#" or end of line
The situation
I am in the process of writing a vim syntax file for a language that allows inline comments following this scheme:
This is code # and here is comment # but this is code again
The ...
2
votes
0
answers
536
views
How to set Neovim+SpaceVim to syntax highlight Hugo (markdown, TOML, Go+HTML, CSS) files?
I am on Manjaro using Neovim and SpaceVim vanilla installations. The editor works fantastically well.
Since I am new to vim-style editing, I do not want to mess my configuration. Yet I'm not very ...
0
votes
0
answers
228
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 ...
1
vote
1
answer
391
views
How to do syntax highlighting for a keyword containing a period (.)?
I tried the below to no avail.
syn keyword myConstant foo.bar "foo.bar" foo\.bar
What can I do to make this work?
-3
votes
1
answer
356
views
create syntax checker vim plugin for a new Programming language [closed]
I want to create a new vim syntax checker for a new programming language that is not used widely, first i tried to read the code of the follwing plugins neomake, syntastic
, and Ale in order to ...