:set tabstop=4 " To match the sample file :set noexpandtab " Use tabs, not spaces :%retab! " Retabulate the whole file