Converting tabs to spaces - Vim Tips Wiki
After the 'expandtab' option is set, all the new tab characters entered will be changed to spaces. This will not affect the existing tab characters. To change all the existing tab characters to match the current tab settings, use:
:retab
permalink -
-
http://vim.wikia.com/wiki/Converting_tabs_to_spaces