trapd00r/vidir — Issue #1: Support different $TERM settings
Author: mathstuf
Created: 2011-11-10 05:13:14+00:00
State: open

It would be nice to support different $TERM settings at once. One way that I've gotten to work is to do a redirection in the main syntax file and have a tool write $TERM-specialized colorizings. The main syntax file would look like:

let colorfile=findfile('vidir-ls-'.$TERM.'.vim', expand(':p:h'), 1)
if !empty(colorfile)
exec 'source '.colorfile
end

The script to create the actual syntax files would generate it from $LS_COLORS and write the expected file using $TERM. It's based on the same code I submitted to the zsh syntax highlighting pull request I made.