If I have non-printable characters assigned to a variable, how can I echo them?
For example, if I have a variable xyz set to be two spaces and a tab, then if I do this:
:echo xyz
it just shows a blank line. I can't actually see the characters to which the variable has been set. Is there any way to get echo to visualize non-printable characters?
strtrans()for unprintable characters, or your can map the split list of characters tochar2nr()to know their code =>:echo map(split(xyz,\zs), 'char2nr(v:val)')– Luc Hermitte Aug 13 '17 at 03:47