Questions tagged [vim-syntax-highlighting]

This is reserved for vim questions which focus on syntax highlighting or colorscheme files.

Vim has a rich syntax highlighting system. Syntax files can be found via :e $VIMRUNTIME/syntax and colorschemes can be found in :e $VIMRUNTIME/colors. These files use special vim commands to color and syntax-highlight different filetypes within vim.

This tag should be used if you have questions specifically about syntax highlighting in vim, since these questions are quite different from standard vim commands and tasks. Make sure you are reporting the correct :echo &filetype in your question and that you have set :syntax on.

If you are trying to add syntax highlighting to a non-standard filetype, then place the downloaded syntax in your ~/.vim/syntax folder and name it <filetype>.vim. Then in your ~/.vimrc, use au BufRead,BufNewFile *.<extension> setl ft=<filetype> where <extension> is the extension of the filetype and <filetype> is the name you saved the syntax file as.

For more information on vim syntax highlighting see :help syntax in vim, which provides some excellent documentation.

386 questions
-1
votes
1 answer

Use vim as an ide for javascript development?

I'm looking on trying out VIM for an IDE of some sort, I've installed vimrc for the most part it looks pretty decent. What I'm missing is linting configuration for syntax errors and what not, some sort of intellisense (which I think vim-javascript…
Johhan Santana
  • 2,336
  • 5
  • 33
  • 61
-1
votes
1 answer

Vim plugin causing aggressive highlighting

I have installed spf13-vim plugin and when I set :color molokai the following orange highlighting occurs; Does anyone know which setting I need to change to disable the highlighting? It's not the result of a search, that was my first guess! It…
Ste-3PO
  • 1,165
  • 1
  • 9
  • 18
-1
votes
1 answer

Why keywords in member class is not highlighted?

Why privateand publicinclass holdis not highlighted?
Asuka
  • 301
  • 4
  • 16
-1
votes
1 answer

Tweaking syntax checker shellcheck's highlight colors (with syntastic and pathogen)

To me, shellcheck's highlight colors and message zone (where syntax is flagged as dubious and warnings are displayed) are both wrong. Is it possible to modify status-line and main window highlight colors used by shellcheck? I looked into that and…
Cbhihe
  • 511
  • 9
  • 24
-2
votes
1 answer

Is there a way to get syntax highlighting that highlights global and local variables differently in JavaScript?

Common workflows for me involve taking functions and breaking them apart into multiple functions, taking code that was not in a function and putting it in a function, and/or switching local variables to global variables for access by other functions…
-2
votes
1 answer

Syntax highlight works for gvim (GUI version of vim) but not for vim (terminal-based vim)

I am new to vim and I want to code in vim. I have installed the necessary plugins for syntax highlighting JSX in TypeScript and everything works fine for GUI version of Vim but not for terminal-based Vim. Please help me figure out the issue. below…
Bhasky93
  • 59
  • 1
  • 8
-2
votes
1 answer

Vim do not set syntax to file any more after crash?

My System was crashed yesterday, the problem is that syntax is disable and set autoindent is not in use. Even I remove this file, touch this file again, it remains not right!
roger
  • 9,063
  • 20
  • 72
  • 119
-2
votes
1 answer

Fortran Namelist syntax highlighing in Vim?

The fortran namelist syntax is defined in a few places, like on the Intel website and at http://owen.sj.ca.us/~rk/howto/slides/f90model/slides/namelist.html. I'm not sure if these are complete or even consistent, but some syntax highlighting would…
naught101
  • 18,687
  • 19
  • 90
  • 138
-3
votes
1 answer

create syntax checker vim plugin for a new Programming language

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 understand how i can build my own syntax checker plugin…
-4
votes
1 answer

How to turn off Auto highlight text in Vim editor?

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.
54Y4N
  • 19
  • 6
-4
votes
1 answer

How can activate C syntax highlighted in VIM?

I have an image with CentOS, GCC compiler, and VIM editor. With a long period time ago i achieved to activate C syntax highlighted but i don't remember how, if you could help ?
1 2 3
25
26