Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment