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

151 active golfers, 575 entries

Leaderboard (lowest score wins):
31
#91 - caplod / @caplod

10/17/2018 at 08:06PM

31
#92 - Fabio Branquinho / @branquif

11/08/2018 at 02:02PM

31
#93 - Anant Mishra / @anantanni22

12/08/2018 at 04:21PM

31
#94 - aka / @aaik4

12/23/2018 at 03:26AM

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

01/11/2019 at 09:05PM

31
#96 - wrglprmft / @wrglprmft

01/19/2019 at 09:32PM

32
#97 - 徐学健 / @zebrallel

08/14/2018 at 03:37AM

32
#98 - Mike Harris / @MikeMJHarris

08/15/2018 at 10:55AM

32
#99 - Hugo / @szeyattai

08/17/2018 at 07:36AM

32
#100 - Weston Neal / @wtneal

08/31/2018 at 06:33PM

32
#101 - けんしろう / @weapom923

09/07/2018 at 03:41AM

32
#102 - Stefan Heyder / @Astheny_

09/17/2018 at 12:33PM

32
#103 - Kyle Safran / @kylesafran

01/22/2019 at 07:26PM

32
#104 - Saphire Lattice / @SaphireLattice

03/06/2019 at 06:49AM

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

08/14/2018 at 12:05AM

33
#106 - yqu212 / @yqu212

08/14/2018 at 06:56AM

33
#107 - John Rizkalla / @jrizkall

08/21/2018 at 09:47PM

33
#108 - Sören Schellhoff / @Jackokomm

11/20/2018 at 04:28PM

33
#109 - Blah Blah / @BlahBla08410389

01/20/2019 at 07:42PM

34
#110 - Frank Korf / @OMGFrank

08/14/2018 at 02:33PM

34
#111 - Evan Relf / @evanrelf

08/14/2018 at 05:39PM

34
#112 - Joachim Wedin / @joachim_wedin

08/16/2018 at 05:50AM

34
#113 - daniel / @daniel31464605

08/18/2018 at 02:38PM

34
#114 - groscoevimgolf / @groscoevimgolf

08/20/2018 at 07:53PM

34
#115 - Jordan / @RiotChomey

09/21/2018 at 08:46PM

34
#116 - prince ducaca / @prince_du_caca

09/26/2018 at 09:50PM

34
#117 - Pumpkin Parapet / @PumpkinParapet

10/06/2018 at 03:28PM

34
#118 - unclewangshushu / @shuwushu

11/29/2018 at 03:24PM

34
#119 - Bennett / @bennettbackward

12/20/2018 at 12:23PM

34
#120 - Slawek Ligus / @ooz_ie

01/14/2019 at 07:51PM