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 136 remaining solutions by signing in and submitting your own entry
#137 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

137 active golfers, 521 entries

Leaderboard (lowest score wins):
30
#61 - Ruben Paz / @IstarEldritch

09/16/2018 at 12:11AM

30
#62 - Rasmus Bergström / @JRasmusBm

09/25/2018 at 03:53PM

30
#63 - golgi / @gloggyapparatus

10/02/2018 at 07:52AM

30
#64 - John Oleksowicz / @JohnOlek

10/05/2018 at 05:40PM

30
#65 - Sam Kim / @samkimhis

10/13/2018 at 01:43AM

30
#66 - Dave Brda / @BrdaDave

10/25/2018 at 03:21PM

30
#67 - matthew brett / @matthewbrett

10/29/2018 at 06:14AM

30
#68 - Timothy Michael Fox / @Timothy_M_Fox

11/20/2018 at 07:09PM

30
#69 - Andreas Nordahl / @andreasnordahl

11/20/2018 at 08:16PM

30
#70 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 01:47AM

30
#71 - Marcio M Pereira / @iviarcio

12/27/2018 at 12:06PM

30
#72 - Nate / @natedoran

01/08/2019 at 07:51AM

30
#73 - abgalphabet / @abgalphabet

01/14/2019 at 02:07PM

31
#74 - Oran / @Oranav

08/15/2018 at 11:46AM

31
#75 - Igor Sowinski / @IgorSowinski

08/15/2018 at 12:13PM

31
#76 - Ano Nym / @AnoNym39473378

08/18/2018 at 01:51PM

31
#77 - Daniel Vaqueiro / @chimidea

08/25/2018 at 12:27AM

31
#78 - Alexander Covington / @ACov96

08/30/2018 at 03:10PM

31
#79 - 安藤 / @andou2106

09/03/2018 at 04:23PM

31
#80 - Koo Zhengqun / @zhengqunkoo

09/28/2018 at 03:23AM

31
#81 - caplod / @caplod

10/17/2018 at 08:06PM

31
#82 - Fabio Branquinho / @branquif

11/08/2018 at 02:02PM

31
#83 - Anant Mishra / @anantanni22

12/08/2018 at 04:21PM

31
#84 - aka / @aaik4

12/23/2018 at 03:26AM

31
#85 - Мастер Гервант / @Dr_Dmatrix

01/11/2019 at 09:05PM

31
#86 - wrglprmft / @wrglprmft

01/19/2019 at 09:32PM

32
#87 - 徐学健 / @zebrallel

08/14/2018 at 03:37AM

32
#88 - Mike Harris / @MikeMJHarris

08/15/2018 at 10:55AM

32
#89 - Hugo / @szeyattai

08/17/2018 at 07:36AM

32
#90 - Weston Neal / @wtneal

08/31/2018 at 06:33PM