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):
30
#91 - abgalphabet / @abgalphabet

01/14/2019 at 02:07PM

30
#92 - Daniel Steinberg / @dstein64

01/29/2019 at 04:27AM

30
#93 - churaki / @churaki

01/29/2019 at 09:52AM

30
#94 - 默罕默德 / @Rt6RjEAJ987Woes

02/11/2019 at 10:57AM

30
#95 - Amado Antonini / @AmadoAntonini

03/17/2019 at 09:12AM

30
#96 - enji / @enji_ja

03/19/2019 at 02:40PM

30
#97 - Parsa Amini / @ParsaAmini

03/20/2019 at 05:30PM

30
#98 - Joel Eriksson / @OwariDa

04/08/2019 at 12:46PM

30
#99 - Gitsnik / @dracyrys

04/22/2019 at 11:24AM

30
#100 - Kai.Li / @KaiLi19

05/06/2019 at 03:28PM

31
#101 - Oran / @Oranav

08/15/2018 at 11:46AM

31
#102 - Igor Sowinski / @IgorSowinski

08/15/2018 at 12:13PM

31
#103 - Ano Nym / @AnoNym39473378

08/18/2018 at 01:51PM

31
#104 - Daniel Vaqueiro / @chimidea

08/25/2018 at 12:27AM

31
#105 - Alexander Covington / @ACov96

08/30/2018 at 03:10PM

31
#106 - 安藤 / @andou2106

09/03/2018 at 04:23PM

31
#107 - Koo Zhengqun / @zhengqunkoo

09/28/2018 at 03:23AM

31
#108 - caplod / @caplod

10/17/2018 at 08:06PM

31
#109 - Fabio Branquinho / @branquif

11/08/2018 at 02:02PM

31
#110 - Anant Mishra / @anantanni22

12/08/2018 at 04:21PM

31
#111 - aka / @aaik4

12/23/2018 at 03:26AM

31
#112 - Dmatrix / @Dr_Dmatrix

01/11/2019 at 09:05PM

31
#113 - wrglprmft / @wrglprmft

01/19/2019 at 09:32PM

31
#114 - Matt Vaughn / @mattttvaughn

08/04/2019 at 04:49AM

32
#115 - 徐学健 / @zebrallel

08/14/2018 at 03:37AM

32
#116 - Mike Harris / @MikeMJHarris

08/15/2018 at 10:55AM

32
#117 - Hugo / @szeyattai

08/17/2018 at 07:36AM

32
#118 - Weston Neal / @wtneal

08/31/2018 at 06:33PM

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

09/07/2018 at 03:41AM

32
#120 - Stefan Heyder / @Astheny_

09/17/2018 at 12:33PM