vim-syntax-highlighting Questions
2
I write documentation in markdown using ViM and I also put math using the latex $$ symbol (I compile using pandoc). The thing is that ViM syntax wouldn't ignore the underscores _ inside the dollar ...
Bianchi asked 30/9, 2015 at 12:11
5
Solved
In VIM, I need to perform a simple task - highlight "(" and ")". I can do this easily by issuing two commands:
:syn match really_unique_name display "[()]"
:hi really_unique_name guifg=#FF0000
B...
Prana asked 31/7, 2009 at 9:34
13
Solved
My Vim editor auto highlights PHP files (vim file.php), HTML files (vim file.html) and so on.
But when I type: vim file and inside it write a Bash script, it doesn't highlight it.
How can I tell ...
Brawn asked 5/4, 2010 at 2:45
2
Solved
One of the Vim Plugins I use has a bug, causing it to set :syntax spell notoplevel. The bug is easily mitigated if I run the command :syntax spell toplevel after opening a file. However, I'm lazy a...
Pifer asked 5/6, 2019 at 5:47
4
Solved
I'd like to change my vim config file to allow highlighting of only my declared variables, not keywords. This article shows and explains what I mean: Alternate syntax highlighting
I'm a beginner t...
Lietman asked 27/1, 2014 at 14:33
5
Solved
I've got some comments in a JSON file that were autogenerated by, and unfortunately it seems like vim can't recognize that they're just comments.
They're all red - which one of my plugins is doi...
Credenza asked 13/4, 2019 at 21:16
4
Solved
The default assembly syntax file didn't work well and searching the web about gas assembly I found nothing about a gas (AT&T) syntax file for vim. Has anyone found this? I can't write my own sy...
Elveraelves asked 23/4, 2009 at 15:56
4
Solved
I installed the typescript plugin via
git clone https://github.com/leafgarland/typescript-vim.git ~/.vim/bundle/typescript-vim
and inserted
au BufRead,BufNewFile *.ts setfiletype typescript
...
Dg asked 29/1, 2016 at 15:1
7
Solved
I know how to turn syntax highlighting on and off in vim by running this in the editor:
:syntax on/off
But I want syntax highlighting to be enabled by default, so I don't have to turn it on ever...
Colincolinson asked 30/6, 2012 at 7:59
8
If I use the inline version of lstlisting as shown:
\lstinline{!$omp parallel for}
the syntax highlighting in vim goes wrong, and the remainder of the latex file is coloured red as if it is all ...
Mikey asked 18/7, 2011 at 20:19
4
Solved
I'm using vim to edit some python files and recently it occurs sporadically that the syntax highlighting disappears after I save the buffer inside vim. I tried to reset syntax on and set filetype=p...
Cronus asked 8/2, 2013 at 18:47
2
I jumped on to a colleague's computer and tried opening a C++ file in vim, and got the following error -
E484: Can't open file /usr/local/share/vim/syntax/syntax.vim
Interestingly, the location...
Perl asked 19/6, 2016 at 21:11
11
Solved
I just recently set up my Vim environment from Textmate, after becoming addicted to its modal input.
However, syntax highlighting seems to be not so beautiful in Vim. I code in C++ and since the f...
Raynold asked 10/4, 2009 at 4:27
11
Solved
I'm trying to add Go language syntax highlighting to VIM on ubuntu with resources and direction supplied here http://go-lang.cat-v.org/text-editors/vim/.
Go comes with a go.vim file that contains ...
Intensity asked 22/3, 2013 at 21:5
3
Solved
Syntax highlighting works swimmingly beautiful with the standard types, like int, uint32_t, float and so on. However, I would like to teach vim that there are other types defined with typedef in my...
Gaberones asked 22/11, 2013 at 16:14
9
Solved
I've installed a fresh Arch Linux system on my laptop and downloaded the vim package.
I haven't altered the .vimrc file, but the syntax highlighting doesn't seem to work with any of the languages ...
Andrel asked 3/11, 2013 at 15:56
3
Solved
Quite honestly, raw string literals are a great addition to the C++ language. But (as expected) editors have a hard time to properly display those literals.
I am using Vim 7.4 and out-of-the-box r...
Coplanar asked 26/3, 2014 at 22:28
4
Solved
How do I do I set the syntax highlighting in Vim 7 for python?
I would like to set my own colorschemes, and syntax highlighting for a type of code file.
Calendar asked 20/1, 2011 at 11:33
1
Recently, I've configured my shell using base16 color scheme using this script: https://github.com/chriskempson/base16-shell/blob/master/scripts/base16-default-dark.sh. And Neovim's color scheme us...
Lowspirited asked 6/8, 2018 at 16:16
4
Solved
I found that my ~/.vimrc file has syntax on but it didn't work for any CUDA file (.cu).
Not sure to how to do it.
Mulder asked 29/10, 2012 at 20:14
5
Solved
I'm looking for a .cshtml vim syntax file. Are there any projects that haven't made it to www.vim.org?
Desegregate asked 2/7, 2011 at 18:40
3
Solved
I'm new to Vim and curious how to highlight a function call after the function has been defined. As an example, in the SublimeText version, totalForArray is green when it is defined, as well as whe...
Paragrapher asked 22/3, 2015 at 7:45
1
Solved
I want to get syntax highlighting inside of a bash heredoc. In addition, I want bash variable dereference and command substitution highlighting in the heredoc.
Using these instructions as a starti...
Heaps asked 15/7, 2017 at 20:47
1
Solved
In my Linux machine files with the .sv extension opens up by default with the verilog syntax highlighting scheme, however extension with .vor .vs don't.
I have to manually in gvim do a :set syntax...
Arvillaarvin asked 18/6, 2017 at 14:35
6
Solved
I'm getting annoyed with the default python syntax highlighting in Vim.
It does not highlight the else: statement correctly.
Vim only highlights the else statement if I have some white space betwe...
Shellans asked 8/9, 2009 at 9:58
1 Next >
© 2022 - 2025 — McMap. All rights reserved.