> For the complete documentation index, see [llms.txt](https://ploegert.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ploegert.gitbook.io/til/tools/vim/tabs-to-spaces.md).

# 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.
