mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
Add Tabs To Spaces as a vim til.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
12
vim/tabs-to-spaces.md
Normal file
12
vim/tabs-to-spaces.md
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user