Convert all tabs to spaces and vice versa.

You can use the :retab command to convert all existing tabs to spaces. You can do both in one command:

:set et|retab

You can also convert spaces to tabs:

:set noet|retab!

http://vim.wikia.com/wiki/Super_retab

Convert all tabs to spaces and vice versa…
Tagged on:

Leave a Reply

Your email address will not be published. Required fields are marked *