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):
32
#91 - けんしろう / @weapom923

09/07/2018 at 03:41AM

32
#92 - Stefan Heyder / @Astheny_

09/17/2018 at 12:33PM

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

08/14/2018 at 12:05AM

33
#94 - yqu212 / @yqu212

08/14/2018 at 06:56AM

33
#95 - John Rizkalla / @jrizkall

08/21/2018 at 09:47PM

33
#96 - Sören Schellhoff / @Jackokomm

11/20/2018 at 04:28PM

34
#97 - Frank Korf / @OMGFrank

08/14/2018 at 02:33PM

34
#98 - Evan Relf / @evanrelf

08/14/2018 at 05:39PM

34
#99 - Joachim Wedin / @joachim_wedin

08/16/2018 at 05:50AM

34
#100 - daniel / @daniel31464605

08/18/2018 at 02:38PM

34
#101 - groscoevimgolf / @groscoevimgolf

08/20/2018 at 07:53PM

34
#102 - Jordan / @RiotChomey

09/21/2018 at 08:46PM

34
#103 - prince ducaca / @prince_du_caca

09/26/2018 at 09:50PM

34
#104 - Pumpkin Parapet / @PumpkinParapet

10/06/2018 at 03:28PM

34
#105 - unclewangshushu / @shuwushu

11/29/2018 at 03:24PM

34
#106 - Bennett / @bennettbackward

12/20/2018 at 12:23PM

34
#107 - Slawek Ligus / @ooz_ie

01/14/2019 at 07:51PM

35
#108 - some call me mattp / @mattpep

08/14/2018 at 05:22PM

35
#109 - Levi Self / @LeviRSelf

11/18/2018 at 09:32AM

36
#110 - Shutterspot Photo / @shutterspot

08/14/2018 at 07:21AM

36
#111 - Sports Fan LaBerge / @BigBoiLaBerge

08/16/2018 at 08:29PM

36
#112 - Miki Tebeka / @tebeka

08/18/2018 at 01:22PM

36
#113 - Mark Oswald / @mrkosw

08/21/2018 at 01:46PM

36
#114 - Julià Mestieri / @julimestieri

09/13/2018 at 10:44AM

36
#115 - Dax / @daaawx

10/17/2018 at 03:54PM

36
#116 - Luis Rodriguez / @luisthecoder

11/12/2018 at 09:30PM

37
#117 - Jakub Horák / @kubahorak

08/20/2018 at 11:57AM

37
#118 - Paul Inc / @hiniol1982

10/18/2018 at 07:13PM

37
#119 - 永森 / @nagakei05

11/17/2018 at 07:15AM

37
#120 - tuyen / @tuyen66827418

11/22/2018 at 02:40PM