Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want trailing whitespace to show as ., and tabs to show as blank spaces instead of ^I. I thought the solution would be easy:

set listchars=tab:  ,trail:.
set list

but that doesn't quite work:

Error detected while processing .vimrc:
line 11:
E474: Invalid argument: listchars=tab:

I suppose I have to escape or encode the whitespace somehow, but how?

share|improve this question

1 Answer 1

up vote 7 down vote accepted
 set listchars=tab:\ \ ,trail:.
share|improve this answer
    
Just so this is clear to anyone else: whatever the character you need to escape is, put a backslash before it, and a backslash and a space after it, before the comma. –  shadowhand Apr 16 at 22:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.