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 @LeeSaville:

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

213 active golfers, 801 entries

Solutions by @LeeSaville:
29
#24 - Lee Saville / @LeeSaville

09/04/2018 at 12:34PM

29
#>24 - Lee Saville / @LeeSaville

09/04/2018 at 12:35PM

30
#>91 - Lee Saville / @LeeSaville

09/04/2018 at 12:24PM

31
#>127 - Lee Saville / @LeeSaville

09/04/2018 at 12:21PM

32
#>142 - Lee Saville / @LeeSaville

09/04/2018 at 12:19PM

33
#>152 - Lee Saville / @LeeSaville

09/04/2018 at 12:14PM

40
#>197 - Lee Saville / @LeeSaville

09/04/2018 at 12:10PM