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):
29
#61 - k24w24 / @k24w24

03/27/2019 at 09:20AM

29
#62 - alekfed / @alek_fed

04/14/2019 at 09:35PM

29
#63 - Grant / @grant_7788

04/28/2019 at 02:56AM

29
#64 - Sherab Giovannini / @shaddycls

05/02/2019 at 10:11PM

29
#65 - majo senf / @majo_senf

06/17/2019 at 09:45AM

29
#66 - Foo Bar / @foobar01123

06/21/2019 at 06:37AM

29
#67 - Rasmus Ɩhman Bruno / @rasmohman

07/23/2019 at 12:50PM

29
#68 - sooqua / @sooqua

08/08/2019 at 08:35PM

29
#69 - Joe FahnestockšŸŒµ / @Joecupojoe

08/09/2019 at 01:39AM

29
#70 - Chris Shorrock / @EbinFlow

08/14/2019 at 10:31PM

29
#71 - Martin Delille / @martinodelilo

08/24/2019 at 12:27PM

29
#72 - Cassandra / @kascein

09/17/2019 at 06:52PM

30
#73 - h43z / @h43z

08/14/2018 at 01:37AM

30
#74 - PCS Solutions / @PeteSolutions

08/14/2018 at 07:08PM

30
#75 - Valacar / @valacar

08/15/2018 at 07:05PM

30
#76 - Alexander Zheleznov / @ephemerr

08/16/2018 at 07:45AM

30
#77 - Sergio / @voyeg3r

08/19/2018 at 04:00PM

30
#78 - Jeff / @sir_wiggles3

09/07/2018 at 08:38AM

30
#79 - Ruben Paz / @IstarEldritch

09/16/2018 at 12:11AM

30
#80 - Rasmus Bergstrƶm / @JRasmusBm

09/25/2018 at 03:53PM

30
#81 - golgi / @gloggyapparatus

10/02/2018 at 07:52AM

30
#82 - John Oleksowicz / @JohnOlek

10/05/2018 at 05:40PM

30
#83 - Sam Kim / @samkimhis

10/13/2018 at 01:43AM

30
#84 - Dave Brda / @BrdaDave

10/25/2018 at 03:21PM

30
#85 - matthew brett / @matthewbrett

10/29/2018 at 06:14AM

30
#86 - Timothy Michael Fox / @Timothy_M_Fox

11/20/2018 at 07:09PM

30
#87 - Andreas Nordahl / @andreasnordahl

11/20/2018 at 08:16PM

30
#88 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 01:47AM

30
#89 - Marcio M Pereira / @iviarcio

12/27/2018 at 12:06PM

30
#90 - Nate / @natedoran

01/08/2019 at 07:51AM