When editing files, it is recommended to substitute spaces for tabs. For instance in YAML-files this is essential for the parsing to work.
So for vim you need to set some options. I used the following and got good results:
(found here: http://vim.wikia.com/wiki/Converting_tabs_to_spaces)
Hope this might help someone someday.