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

164 active golfers, 620 entries

Leaderboard (lowest score wins):
30
#91 - Gitsnik / @dracyrys

04/22/2019 at 11:24AM

30
#92 - Kai.Li / @KaiLi19

05/06/2019 at 03:28PM

31
#93 - Oran / @Oranav

08/15/2018 at 11:46AM

31
#94 - Igor Sowinski / @IgorSowinski

08/15/2018 at 12:13PM

31
#95 - Ano Nym / @AnoNym39473378

08/18/2018 at 01:51PM

31
#96 - Daniel Vaqueiro / @chimidea

08/25/2018 at 12:27AM

31
#97 - Alexander Covington / @ACov96

08/30/2018 at 03:10PM

31
#98 - 安藤 / @andou2106

09/03/2018 at 04:23PM

31
#99 - Koo Zhengqun / @zhengqunkoo

09/28/2018 at 03:23AM

31
#100 - caplod / @caplod

10/17/2018 at 08:06PM

31
#101 - Fabio Branquinho / @branquif

11/08/2018 at 02:02PM

31
#102 - Anant Mishra / @anantanni22

12/08/2018 at 04:21PM

31
#103 - aka / @aaik4

12/23/2018 at 03:26AM

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

01/11/2019 at 09:05PM

31
#105 - wrglprmft / @wrglprmft

01/19/2019 at 09:32PM

32
#106 - 徐学健 / @zebrallel

08/14/2018 at 03:37AM

32
#107 - Mike Harris / @MikeMJHarris

08/15/2018 at 10:55AM

32
#108 - Hugo / @szeyattai

08/17/2018 at 07:36AM

32
#109 - Weston Neal / @wtneal

08/31/2018 at 06:33PM

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

09/07/2018 at 03:41AM

32
#111 - Stefan Heyder / @Astheny_

09/17/2018 at 12:33PM

32
#112 - Kyle Safran / @kylesafran

01/22/2019 at 07:26PM

32
#113 - Saphire Lattice / @SaphireLattice

03/06/2019 at 06:49AM

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

08/14/2018 at 12:05AM

33
#115 - yqu212 / @yqu212

08/14/2018 at 06:56AM

33
#116 - John Rizkalla / @jrizkall

08/21/2018 at 09:47PM

33
#117 - Sören Schellhoff / @Jackokomm

11/20/2018 at 04:28PM

33
#118 - Blah Blah / @BlahBla08410389

01/20/2019 at 07:42PM

34
#119 - Frank Korf / @OMGFrank

08/14/2018 at 02:33PM

34
#120 - Evan Relf / @evanrelf

08/14/2018 at 05:39PM