Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

I'm trying to to setup syntax highlighting in VIM to match the whole line only if the first non-whitespace character is "-" or if the last non-whitespace character of the line is ":&...
che_kid's user avatar
  • 203
1 vote
1 answer
43 views

I have the following three lines to style comments in my syntax file. Comments start with # and are allowed to be inline or on a seperate line. syn keyword myTodo contained TODO FIXME ...
ap0's user avatar
  • 1,173
1 vote
1 answer
3k views

I have some simple (default) syntax highlighting, and other colors, in my regular vim. I'd like to try out neovim, so I did the cd && ln -s .vimrc .nvimrc && ln -s .vim .nvim I'm ...
Hoopes's user avatar
  • 4,245
0 votes
1 answer
105 views

I have this vimscript: syn region fdocCommand start="^@" end="$" contained syn region fdocComment start="^@" end="^@tangle " contains=fdocCommand keepend " syn region ...
Yttrill's user avatar
  • 4,921
1 vote
1 answer
139 views

I've used listchars to mark certain whitespace characters for visual identification, but I am wondering if there is a similar feature to visually mark the indentation level in vim. Something like a ...
David Young's user avatar
19 votes
3 answers
10k views

I ran git config --global alias.ci commit --verbose This makes it so running git ci is like running git commit --verbose The --verbose flag shows a diff in the commit message template, which is not ...
user1902689's user avatar
  • 1,825
1 vote
1 answer
365 views

I'm working on adding an automatic highlight for my current line in Vim, that matches the current mode color used in the status line. So far I haven't had much success if finding a way to get what ...
PseudoPsyche's user avatar
  • 4,632
4 votes
1 answer
443 views

There was a very useful answer on how to highlight openmp directives in Fortran code (Vim syntax highlighting for multiline fortran openmp directives). So lines like !$omp parallel are no longer ...
Roux's user avatar
  • 475
0 votes
0 answers
89 views

I try to remove the highlighted words with :set nospell command and I can't. Examples: I'm working with vim 7.4 on Archlinux with gnome-shell desktop. Thanks! Any suggestion is accepted :)
Leo Gasparrini's user avatar
1 vote
1 answer
415 views

I'm installing the solarized theme for my terminal and vim. I've successfully switched to it for my Terminal (& Tmux), having imported the solarized theme for Terminal. However, I get the ...
bsuire's user avatar
  • 1,493
2 votes
3 answers
216 views

Is it possible to include empty virtual columns in a syn match group? I want to highlight a block of text as though it's in a terminal window by giving it a black background, but I want the "terminal" ...
brianmearns's user avatar
2 votes
1 answer
84 views

I'm trying to create a custom syntax highlighter for MacVim that uses a combination of CSS and PHP, where CSS is static selectors, and sometimes there will be embedded PHP code (very similar to HTML+...
smaili's user avatar
  • 1,235
0 votes
1 answer
111 views

When editing PHP files that are part of a framework, there's no <?php tag in the beginning of the file. Thus, Vim doesn't recognize the PHP in that file as PHP. Is there a way to fix that?
Greg Bell's user avatar
  • 2,289
0 votes
1 answer
132 views

If there a syntax region definition, how to get the definition using VimL or Python? eg, below is a definition, how can I get the data start from start syntax region potionString start=/\v"/ skip=/\...
yongzhy's user avatar
  • 977
2 votes
1 answer
81 views

For example, if I am writing a Vimscript function to operate on Python syntax, it might be useful to know whether a line is regular code, a comment, or enclosed in triple-quotes. I assume that the ...
FMc's user avatar
  • 42.5k
1 vote
2 answers
973 views

I am making changes to an existing C code. If I just want to check my changes, I can easily use vimdiff for that, with old & modified files. What I want is to limit some syntax highlighting to ...
anishsane's user avatar
  • 21.1k
0 votes
1 answer
689 views

I want to add custom keywords that should be highlighted in vim. These keywords are for marking comments, not the code. This is what I have in my .vimrc: autocmd Syntax * syntax keyword Important ...
user avatar
0 votes
2 answers
93 views

I'm trying to do a syntax highlight regex in my _vimrc etc to highlight specific commands in comments for a visual cue. The match should be \s followed by either a # or ! then a \s or a \S then ...
Steve's user avatar
  • 388
4 votes
0 answers
373 views

I recently turned on cursorline in my .vimrc: set cursorline hi CursorLine ctermbg=54 cterm=NONE However, it doesn't seem to work very well with syntax highlighting. For example, As you can see on ...
smithjonesjr's user avatar
9 votes
4 answers
3k views

By default, vim spell checker is code aware, so it doesn't spell-check code parts of the file. In effect, in markdown it considers (pandoc multiline) tables to be codes and thus doesn't spell-check ...
Mustafa's user avatar
  • 1,864
4 votes
1 answer
2k views

I'm trying to clean up a colour scheme that I'm making for vim by linking some highlighting groups but I can't get the linking to work. Here is a sample of my vim script: highlight Error ...
Courtney Pattison's user avatar
5 votes
1 answer
3k views

when I do the single slash (/) when typing some arithmetic expression (like val1 / val2), my vim treats it as a comment for multiple lines (/*). The result looks like: I now I can escape it by typing ;...
tlegutko's user avatar
  • 718
0 votes
1 answer
82 views

I am playing with vim syntax files and using help.vim as a guide to create my own syntax file. Changes I make in my syntax file are correctly applied in a test file but my problem is with creating a ...
markjames's user avatar
0 votes
1 answer
271 views

I've got vim setup to jump to the last known cursor position when opening a file, but sometimes that position is in the middle of some javascript or css on a html page, and the syntax highlighting ...
k107's user avatar
  • 16.7k
0 votes
0 answers
715 views

I am trying to install the TagHighlight vim script. I am using MacVim version 7.4.22 and Mac OS X 10.9.3. I unzip the zip file and then copy into ~/.vim. However, there are no changes when I start ...
user2472071's user avatar

1
4
5
6 7 8