I don't do tabs, so usually my
listchars=tab:▸ ,nbsp:␠,trail:·,precedes:«,extends:»
But it gets annoying with some sources. I'd like to subtract tab:
from lcs
in some filetypes. I've tried setlocal lcs-=tab
(also tab:.*
) to no avail.
Short of programatically re-computing lcs
, what to do?
Edit: clearing tab:
results in ^I
's, so maybe I actually want to replace the sub-key, not remove it; nevertheless I'm still curious about the original question
let &listchars = join(filter(split(&listchars, ","), 'v:val !~ "tab:"'), ",")
:set lcs=<C-R>=&lcs<cr>
. Now you have the current value in the commandline and I just use the cursor keys to remove what I do not wantsetl lcs=<tab>
which lets me edit the current value, but, like I said, it gets annoying