Colorizer icon indicating copy to clipboard operation
Colorizer copied to clipboard

Colorizing not showing for ^[[35m^[[K

Open azizj1 opened this issue 4 years ago • 2 comments
trafficstars

I looked at :help Colorizer and wasn't able to figure out what's going on. The following only hides the ANSI but doesn't actually show colors:

^[[35m^[[KSOME_TEXT_HERE^[[m^[[K:^[[32m^[[KMORE_TEXT^[[m^[[KMORE_TEXT...

It doesn't even work for :r! ls --color -l, which has ANSI like this:

^[[0m^[[38;5;30mbroadcast^[[0m

But this does show colors:

^[[0;33mhelloworld^[[0m im doneee

I'm no expert when it comes to ANSI, so looking for ideas why the last one would work (which I generated via :r! echo -e ...), but the others won't, which are the actual things I want colored.

I tried both of these settings in my ~/.vimrc to no avail:

let g:colorizer_debug = 1
let g:colorizer_x11_names = 1

Happening on both gvim and terminal vim

:version
VIM - Vi IMproved 8.1
Included patches: 1-2269

Next

  • :echo $TERM returns xterm-256color,
  • :echo &t_Co returns 256, and
  • :echo getmatches() returns a giant array of objects, where most group keys have a value of Color_00CD00_NONE.

Thanks in advance for the help!

azizj1 avatar Apr 09 '21 15:04 azizj1

sorry, I missed several Colorizer Notifications by github apparently. Can you please provide a raw sample file?

chrisbra avatar Jan 05 '22 18:01 chrisbra

I ttested this briefly and it seems to work. So please share a raw file and please also show complete (:version) output and check with Vim master commit which is at 8.2.4700 or something.

chrisbra avatar Apr 17 '22 17:04 chrisbra