← Back to all TILs

Tabs To Spaces

vim Written April 04, 2015

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.

Other posts like this