I want to work on someone else\'s project, and he uses 4 spaces for indentation. I use 2, and my screen is not big enough to edit using 4 spaces comfortably.
Can I confi
This is the opposite of what was asked here.
Yes, you can! If you have the "conceal" option, you can try this out.
:syntax match spaces / / conceal cchar= "Don't forget the space after cchar!
:set concealcursor=nvi
:set conceallevel=1
Here are what these commands do:
You still have to set your tabstop
, softtabstop
and shiftwidth
to 4
, but it looks and feels like it is 2
! However, when you write the file, it's really 4
.
If you want to turn concealment off you can do one of two things:
:syntax clear spaces
or:set concealcursor=