Some programs (such as Sublime Text) automatically convert tabs to spaces when you save a file, so if you don't want this to happen, make sure your vim configuration doesn't include the "tabstop" option.