I use 2 spaces as indentation. So I set shiftwidth
using :set sw=2
.
However when I do the shift operator(>>
) on a line twice, the indentation converts the 4 spaces automatically to a tab. So to avoid this, I set tabstop
to a high value say 60 using :set ts=60
and the shift operator works (does NOT convert space to tab).
My question is, Is this the right way to do? Am I missing a simpler solution?