Yakov Lerner wrote:
On 12/2/06, Lev Lvovsky <[EMAIL PROTECTED]> wrote:
Can anyone suggest the best way to be able to highlight tabs (versus
softtabs) selectively? meaning, at the push of a button I can have
that feature turned on, and pressing it again turns it off - all the
while not messing with my search buffer?
:exe "set listchars=tab:\xbb\xb7,trail:\xb7"
"or set listchars=tab:»·,trail:·
:set list
map <f2> :set list!<cr>
Yakov
Beware: it seems that "\x" means a byte, not a character, when 'encoding' is
UTF-8 (see the recent thread about "\xe4" not being equal to itself). Use
alpha values (your commented-out command) or else use e.g. <Char-0xB7>
(preceded by \ if in a double-quoted string but not if in a mapping) which
means the same character in Latin1 and UTF-8 (codepoint U+00B7, represented in
Latin1 as 0xB7, in UTF-8 as 0xC2 0xB7).
Best regards,
Tony.