code_junkie

Tab key == 4 spaces and auto-indent after curly braces in VIM

Nov 11th, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. set smartindent
  2. set tabstop=4
  3. set shiftwidth=4
  4. set expandtab
  5.  
  6. :help smartindent
  7.  
  8. :help auto-setting
  9.  
  10. :set all
  11.  
  12. :help C-indenting
  13.  
  14. set expandtab ts=4 sw=4 ai
  15.  
  16. :%retab
Add Comment
Please, Sign In to add comment