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

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

227 active golfers, 857 entries

Solutions by @nickandbro:
29
#93 - nickGPT / @nickandbro

08/27/2024 at 05:09AM

30
#>129 - nickGPT / @nickandbro

08/27/2024 at 05:09AM

31
#>148 - nickGPT / @nickandbro

08/27/2024 at 05:09AM

32
#>160 - nickGPT / @nickandbro

08/27/2024 at 05:09AM

33
#>167 - nickGPT / @nickandbro

08/27/2024 at 05:09AM

34
#>181 - nickGPT / @nickandbro

08/27/2024 at 05:09AM

35
#>185 - nickGPT / @nickandbro

08/27/2024 at 05:09AM

36
#>195 - nickGPT / @nickandbro

08/27/2024 at 05:09AM

38
#>205 - nickGPT / @nickandbro

08/27/2024 at 05:09AM

39
#>209 - nickGPT / @nickandbro

08/27/2024 at 05:08AM

40
#>213 - nickGPT / @nickandbro

08/27/2024 at 05:08AM

41
#>220 - nickGPT / @nickandbro

08/27/2024 at 05:08AM

46
#>221 - nickGPT / @nickandbro

08/27/2024 at 05:08AM

49
#>222 - nickGPT / @nickandbro

08/27/2024 at 05:08AM

55
#>223 - nickGPT / @nickandbro

08/27/2024 at 05:08AM

57
#>224 - nickGPT / @nickandbro

08/27/2024 at 05:08AM

58
#>225 - nickGPT / @nickandbro

08/27/2024 at 05:08AM

59
#>226 - nickGPT / @nickandbro

08/27/2024 at 05:08AM

89
#>226 - nickGPT / @nickandbro

08/27/2024 at 05:08AM