convert yml into java pojo field
How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file
Start file
- browser: Chrome browserVersion: 63 os: window7 osVersion: 2012 lang: en
End file
private String browser; private String browserVersion; private String os; private String osVersion; private String lang;
View Diff
1,5c1,5 < - browser: Chrome < browserVersion: 63 < os: window7 < osVersion: 2012 < lang: en --- > private String browser; > private String browserVersion; > private String os; > private String osVersion; > private String lang;
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 226 remaining solutions by signing in and submitting your own entry
#227 Aaron / @_Lordofthevoid_ - Score: 90 - 11/28/19 @ 14:31
iprivate String <Esc>j0.j0.j0.j0.xxkxxkxxkxxkxxf:d$a;<Esc><Esc>jf:c$;<Esc>jcF:;<Esc>lxjA<BS><BS><BS><BS><BS><BS>;<Esc>jcF:a<BS>;<Esc>lx:wq<CR>
0 comments