Return to Snippet

Revision: 10494
at January 2, 2009 11:21 by callmeblessed


Initial Code
For groovy : change syntax to Java .. make  sure you have ; so it becomes like java. I myself always adding ; on each line of code.

after that 

ESC gg = SHIFT-G 

means:
1. ESC --> back to mode
2. gg  --> go to first line 
3. =   --> indenting 
4. SHIFT G --> to end of file. 

for spesific lines 

ESC SHIFT V (select the lines) press = 

SHIFT V = enter visual mode then you can select which lines you want to format
after that pressing = will format the code

Initial URL
www.wysmedia.com

Initial Description
how to "beautify" or tidying your code using vim ?

Initial Title
vim: code formatting

Initial Tags
groovy

Initial Language
Groovy