How to show tab character while using expandtab setting?

Posted by Plugawy on Stack Overflow See other posts from Stack Overflow or by Plugawy
Published on 2010-05-07T12:14:07Z Indexed on 2010/05/07 12:18 UTC
Read the original article Hit count: 142

Filed under:
|
|
|

In my .gvimrc I have following lines:

set listchars=tab:\.\ ,trail:-
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab

When I change last line to set noexpandtab the indents can be seen and marked with .

Is there a way to make vim treat expanded tabs like "normal" tab so that list option works as expected?

© Stack Overflow or respective owner

Related posts about vim

Related posts about vi