Created
April 3, 2012 23:25
-
-
Save apoo/2296276 to your computer and use it in GitHub Desktop.
Converts Tabs to Whitespaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In vim: | |
:set tabstop=4 shiftwidth=4 expandtab | |
:retab | |
Or you can set them in your vim config: | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
map <F2> :retab <CR> :wq! <CR> | |
So open a file and click on F2, it converts tabs to whitespace and save the file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment