vim wrote:really nice, but what if i open this file in another 'plain' editor, i will see a mess... as well as if i send this file to a friend, etc. the problem is it is not standard behavior.
Actually, when the file is opened in another editor, it looks perfect, because the file is saved with spaces only.
It's been done for gedit (http://nickgravgaard.com/elastictabstops/#gedit
). When you open the file, it's internally converted to tabs, and when you save it, it's converted back to spaces.
I think we could make this work in Sublime if there was a way to set non-uniform tabstops on different lines.