Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 5b71fa9105b5ca000ce4a7a1

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 by @jasonneylon:

Unlock 11 remaining solutions by signing in and submitting your own entry
Created by: @saurabh908583

227 active golfers, 857 entries

Solutions by @jasonneylon:
30
#126 - Jason Neylon / @jasonneylon

01/24/2020 at 05:55PM

30
#>126 - Jason Neylon / @jasonneylon

01/24/2020 at 05:56PM

30
#>126 - Jason Neylon / @jasonneylon

01/24/2020 at 05:56PM

31
#>144 - Jason Neylon / @jasonneylon

01/24/2020 at 05:55PM

32
#>157 - Jason Neylon / @jasonneylon

01/24/2020 at 05:53PM

33
#>166 - Jason Neylon / @jasonneylon

01/24/2020 at 05:52PM

33
#>166 - Jason Neylon / @jasonneylon

01/24/2020 at 05:53PM

34
#>180 - Jason Neylon / @jasonneylon

01/24/2020 at 05:50PM

34
#>180 - Jason Neylon / @jasonneylon

01/24/2020 at 05:50PM

40
#>213 - Jason Neylon / @jasonneylon

01/24/2020 at 05:49PM

48
#>221 - Jason Neylon / @jasonneylon

01/24/2020 at 05:49PM