Conversation

XPM is the superior image format. Here's an example: chromium.googlesource.com/chromium/src.g Here's how it looks in Vim with true color support enabled: paste.xinu.at/jF7MV Most Vim users don't realize they're misusing an image manipulation tool as a text editor.
Replying to
There are all these fancy modern image formats based on HEVC, AV1, etc. but how many of them can be compiled to an object file with Clang and loaded in a debugger? Clearly, something went wrong standardizing those.
2
27
In case you actually want to know something useful, here's how to enable true color support for console Vim: let &t_8f="\<Esc>[38;2;%lu;%lu;%lum" let &t_8b="\<Esc>[48;2;%lu;%lu;%lum" set termguicolors Once that's enabled, it will render XPM images using syntax highlighting.
28
Replying to
it's awesome that .xpm files are readable with ordinary text editors, but, take our word for it, raster graphics are not exactly a truly pleasant thing to deal with if you count in user interfaces, different resolutions and things like HiDPI
2
we also had to amend a couple of proposed commits because different image editors (say, GIMP) use different naming conventions and sometimes do not retain the original variable names (we missed that). audacity, using wxWidgets, even ships with a "degimpify" script for that reason
1
Show replies