How do I prevent vim from replacing spaces with tabs when autoindent is on?
An example: if I have two tabs and 7 spaces in the beginning of the line, and tabstop=3
tabstop=3
You can convert all TAB to SPACE
TAB
SPACE
:set et :ret!
or convert all SPACE to TAB
:set et! :ret!