/ Published in: Groovy
how to "beautify" or tidying your code using vim ?
- after that
- ESC gg = SHIFT-G
- 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
You need to login to post a comment.