New answers tagged

0 votes

set syntax color to log files, .env.local files without detected extension

As mentioned in https://stackoverflow.com/questions/3853028/how-to-force-vim-to-syntax-highlight-a-file-as-html/3853036#3853036 we can define it temporarily with command like : :set syntax=<syntax ...
bcag2's user avatar
  • 101
0 votes

Setting guard variables does not prevent default ftplugin/syntax/indent files from running

I assume the buffer is being reloaded after ftplugin, indent, syntax. So the buffer local variables aren't persistent. Splitting the files into the correct ftplugin/syntax/indent dirs fixes the issues,...
CoelinG's user avatar
0 votes
Accepted

if endif oneliner failure in VIM

The issue is within echo(w) as it can't figure out where is the end of the command. A workaround is to wrap it with execute: if v:false | exe 'echow "g:mode_class "' | else | exe 'echo "...
Maxim Kim's user avatar
  • 13.4k
1 vote

Easy way to change the background color of a line

Using :highlight commands, only changes those parts of a line, that have content. The empty lines won't be colored. A few years ago, I created a plugin BackgroundColor, that allows to highlight the ...
Christian Brabandt's user avatar
1 vote
Accepted

Easy way to change the background color of a line

I would do: highlight LightBlue guibg=#00afff ctermbg=039 match LightBlue /^.*lightblue.*$/ Where the pattern: ^.*lightblue.*$ is identifying the lines that you would like to highlight in light blue (...
Vivian De Smedt's user avatar
0 votes
Accepted

Vim highlighting bug

If you add a single space between i and < it is "fixed". I would just contact either author of typescript syntax or create an issue in vim repo.
Maxim Kim's user avatar
  • 13.4k

Top 50 recent answers are included