indenting easy on Vim


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /* to indent completely a file */
  2.  
  3. gg=G
  4.  
  5. /* to indent a section */
  6.  
  7. V<motion>=
  8.  
  9. /* indent a line */
  10.  
  11. =
  12.  
  13. /* of course you can use */
  14.  
  15. <
  16. >
  17.  
  18. /* to indent lines or chunks of code */

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.