Guest User

Untitled

a guest
Sep 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. In vim:
  2.  
  3. :set tabstop=4 shiftwidth=4 expandtab
  4. :retab
  5.  
  6. Or you can set them in your vim config:
  7. set expandtab
  8. set tabstop=4
  9. set shiftwidth=4
  10. map <F2> :retab <CR> :wq! <CR>
  11.  
  12. 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