Tabs To Spaces

If you prefer spaces over tabs in your files, then opening up a file full of tabbed indentation is not ideal. You can quickly convert all tabs in the current buffer to spaces using:

:retab

This assumes that you have expandtab set. See :help :retab for more details.

Last updated