Vim - How Recognize Spaces as Tabs (set listchars=tab)
- by Eduardo Lucio
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)...
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"...
... 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!