2

I wonder if it is possible to use a configuration for that command "set listchars=tab:▒░,trail:·" to "see" 4 spaces as tabs and get the effect of the picture below (using real tabs)...

enter image description here

I use the setting "set expandtab" to Vim use spaces in place of tabs. I really need to use spaces instead of tabs, but I would keep the functionality above. There is some form of do this?


Here's how Vim behaves when I use "set expandtab"...

enter image description here

... I wish he recognized one tab for every 4 spaces like above!


My setup for tabs...

set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab

Thank you!

1

Have a look at the following plugins:

| improve this answer | |
  • I could not use "Indent Guides" in Vim terminal (may need some additional feature of Vim). The "indentLine" worked properly! – Eduardo Lucio Aug 25 '14 at 21:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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