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
If you want to replace all the tabs with spaces based on the setting of 'ts', you can use :retab. It can also do the reverse.