Created attachment 897312 [details] new lesspipe script Hello, since sys-apps/less-643-r[12] is using dev-python/pygments-2.17.2 for color output, viewing files without a suffix needs up to a second before they are displayed, but colors would be nice... Just try less /usr/share/misc/magic/* and walk through the list of files using :n and :p While having a look at /usr/bin/lesspipe, I've decided to re-write most parts of this script, in order to: - fix the problem with slow execution, - support many more suffixes, not only for colorization, - fully handle compressed files. I've tried to find some nice looking colors, but they aren't as nice as those used by vim... The new lesspipe script is heavily commented, so please RTFS. All my added comments are marked with (ThMO) in order to distinguish them from the original comments. Notice: I'm working on a 80x25 terminal console, therefore my lines do not exceed 80 columns - furthermore I never use tabs at the beginning of a line, for obvious reasons. So please execute :se ts=2 inside vim for proper indentation. If you're willing to accept my changes, please feel free to: - re-indent as you like it, - remove comments at your will. THX for listening so far. CU Tom