chrisbra / Colorizer

color hex codes and color names
547 stars 30 forks source link

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

Closed azizj1 closed 10 months ago

azizj1 commented 3 years ago

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

Thanks in advance for the help!

chrisbra commented 2 years ago

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

chrisbra commented 2 years ago

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.