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

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 176 remaining solutions by signing in and submitting your own entry
#177 Jurica / @Jurica34581259 - Score: 59 - 11/14/18 @ 23:35
:%s/:.*//g<CR>0qaxxkq4@a:%s/^/private String /g<CR>:%s/$/;/g<CR>:wq<CR>

0 comments


Created by: @saurabh908583

177 active golfers, 673 entries

Leaderboard (lowest score wins):
32
#121 - Kyle Safran / @kylesafran

01/22/2019 at 07:26PM

32
#122 - Saphire Lattice / @SaphireLattice

03/06/2019 at 06:49AM

33
#123 - 村橋究理基M.Kuriki@北大 / @mkuriki_

08/14/2018 at 12:05AM

33
#124 - yqu212 / @yqu212

08/14/2018 at 06:56AM

33
#125 - John Rizkalla / @jrizkall

08/21/2018 at 09:47PM

33
#126 - Sören Schellhoff / @Jackokomm

11/20/2018 at 04:28PM

33
#127 - Blah Blah / @BlahBla08410389

01/20/2019 at 07:42PM

34
#128 - Frank Korf / @OMGFrank

08/14/2018 at 02:33PM

34
#129 - Evan Relf / @evanrelf

08/14/2018 at 05:39PM

34
#130 - Joachim Wedin / @joachim_wedin

08/16/2018 at 05:50AM

34
#131 - daniel / @daniel31464605

08/18/2018 at 02:38PM

34
#132 - groscoevimgolf / @groscoevimgolf

08/20/2018 at 07:53PM

34
#133 - Jordan / @RiotChomey

09/21/2018 at 08:46PM

34
#134 - prince ducaca / @prince_du_caca

09/26/2018 at 09:50PM

34
#135 - Pumpkin Parapet / @PumpkinParapet

10/06/2018 at 03:28PM

34
#136 - unclewangshushu / @shuwushu

11/29/2018 at 03:24PM

34
#137 - Bennett / @bennettbackward

12/20/2018 at 12:23PM

34
#138 - Slawek Ligus / @ooz_ie

01/14/2019 at 07:51PM

34
#139 - Matthias Kausl / @sig_segv

04/25/2019 at 06:03PM

35
#140 - some call me mattp / @mattpep

08/14/2018 at 05:22PM

35
#141 - Levi Self / @LeviRSelf

11/18/2018 at 09:32AM

35
#142 - zenwalker / @zenwalker93

03/10/2019 at 03:19PM

36
#143 - Shutterspot Photo / @shutterspot

08/14/2018 at 07:21AM

36
#144 - Sports Fan LaBerge / @BigBoiLaBerge

08/16/2018 at 08:29PM

36
#145 - Miki Tebeka / @tebeka

08/18/2018 at 01:22PM

36
#146 - Mark Oswald / @mrkosw

08/21/2018 at 01:46PM

36
#147 - Julià Mestieri / @julimestieri

09/13/2018 at 10:44AM

36
#148 - Dax / @daaawx

10/17/2018 at 03:54PM

36
#149 - Luis Rodriguez / @luisthecoder

11/12/2018 at 09:30PM

36
#150 - Chester Yap / @Chest_ErYap

07/10/2019 at 01:26AM