vim icon indicating copy to clipboard operation
vim copied to clipboard

netrw selection color masks text color

Open tjaartvdwalt opened this issue 4 years ago • 3 comments

What happened

Run netrw-explore :Explore

The font color for certain files, is the same as the highlight color for the current file. If you navigate to one of these files, the file name becomes unreadable.

What I expected to happen

Font color, and highlight color to be different colors

Screenshot

screenshot_2020-05-05_11-50-02_194736550

Machine Info

  • Vim type (vim/gvim/neovim): vim/gvim
  • Vim version: 8.2 (2019 Dec 12, compiled Apr 26 2020 11:23:21)
  • OS: Linux hostname 5.6.10-arch1-1 #1 SMP PREEMPT Sat, 02 May 2020 19:11:54 +0000 x86_64 GNU/Linux
  • Terminal/Terminal Emulator/VTE: Alacritty
  • TERM environment variable:

Additional Info

tjaartvdwalt avatar May 05 '20 18:05 tjaartvdwalt

What are the syntax groups being applied to those files?

In my netrc, pngs are the same color as the other files.

Is the ownership adjusted on those or something?

dsifford avatar May 05 '20 19:05 dsifford

:syntax, gives me this output: netrwPix xxx match /\c\(\S\+ \)*\S*\.\%(bmp\|fits\=\|gif\|je\=pg\|pcx\|ppc\|pgm\|png\|ppm\|psd\|rgb\|tif\|xbm\|xcf\)\>/ contains=n etrwTreeBar,@NoSpell

But I noticed that netrwPix is supposed to be pink, not grey, as shown above.

If I type

:syntax off
:syntax on

it seems to fix things

screenshot_2020-05-05_13-58-04_099067329 the colors

tjaartvdwalt avatar May 05 '20 20:05 tjaartvdwalt

@tjaartvdwalt Were you able to figure this out?

I did see that g:netrw_special_syntax produces a more colorful netrw directory tree, but I was not able to reproduce the issue.

That said, I don't use current line highlighting, which I assume is a part of the reason why you're having the experience you are with current line issues in netrw.

dsifford avatar May 12 '20 19:05 dsifford