diff --git a/README.md b/README.md index 0aed8ba..ca794c0 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Rename Current File](vim/rename-current-file.md) - [Repeat The Previous Change](vim/repeat-the-previous-change.md) - [Split Different](vim/split-different.md) +- [Tabs To Spaces](vim/tabs-to-spaces.md) - [View Commit History of a File](vim/view-commit-history-of-a-file.md) - [Wrap With Some Room](vim/wrap-with-some-room.md) diff --git a/vim/tabs-to-spaces.md b/vim/tabs-to-spaces.md new file mode 100644 index 0000000..fa17daf --- /dev/null +++ b/vim/tabs-to-spaces.md @@ -0,0 +1,12 @@ +# 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.