Skip to content

Commit 443030c

Browse files
committed
Add Tabs To Spaces as a vim til.
1 parent 4f80560 commit 443030c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
6161
- [Rename Current File](vim/rename-current-file.md)
6262
- [Repeat The Previous Change](vim/repeat-the-previous-change.md)
6363
- [Split Different](vim/split-different.md)
64+
- [Tabs To Spaces](vim/tabs-to-spaces.md)
6465
- [View Commit History of a File](vim/view-commit-history-of-a-file.md)
6566
- [Wrap With Some Room](vim/wrap-with-some-room.md)
6667

vim/tabs-to-spaces.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Tabs To Spaces
2+
3+
If you prefer spaces over tabs in your files, then opening up a file full of
4+
tabbed indentation is not ideal. You can quickly convert all tabs in the
5+
current buffer to spaces using:
6+
7+
```
8+
:retab
9+
```
10+
11+
This assumes that you have `expandtab` set. See `:help :retab` for more
12+
details.

0 commit comments

Comments
 (0)