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 193 remaining solutions by signing in and submitting your own entry
#194 Aaron / @_Lordofthevoid_ - Score: 90 - 11/28/19 @ 14:31
iprivate String <Esc>j0.j0.j0.j0.xxkxxkxxkxxkxxf:d$a;<Esc><Esc>jf:c$;<Esc>jcF:;<Esc>lxjA<BS><BS><BS><BS><BS><BS>;<Esc>jcF:a<BS>;<Esc>lx:wq<CR>

0 comments


Created by: @saurabh908583

194 active golfers, 752 entries

Leaderboard (lowest score wins):
30
#91 - Dave Brda / @BrdaDave

10/25/2018 at 03:21PM

30
#92 - matthew brett / @matthewbrett

10/29/2018 at 06:14AM

30
#93 - Timothy Michael Fox / @Timothy_M_Fox

11/20/2018 at 07:09PM

30
#94 - Andreas Nordahl / @andreasnordahl

11/20/2018 at 08:16PM

30
#95 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 01:47AM

30
#96 - Marcio M Pereira / @iviarcio

12/27/2018 at 12:06PM

30
#97 - Nate / @natedoran

01/08/2019 at 07:51AM

30
#98 - abgalphabet / @abgalphabet

01/14/2019 at 02:07PM

30
#99 - Daniel Steinberg / @dstein64

01/29/2019 at 04:27AM

30
#100 - churaki / @churaki

01/29/2019 at 09:52AM

30
#101 - 默罕默德 / @Rt6RjEAJ987Woes

02/11/2019 at 10:57AM

30
#102 - Amado Antonini / @AmadoAntonini

03/17/2019 at 09:12AM

30
#103 - enji / @enji_ja

03/19/2019 at 02:40PM

30
#104 - Parsa Amini / @ParsaAmini

03/20/2019 at 05:30PM

30
#105 - Joel Eriksson / @OwariDa

04/08/2019 at 12:46PM

30
#106 - Gitsnik / @dracyrys

04/22/2019 at 11:24AM

30
#107 - Kai.Li / @KaiLi19

05/06/2019 at 03:28PM

30
#108 - Miko / @_m_ik_o_

10/06/2019 at 10:57AM

30
#109 - GrimmT / @GrimmT10

11/01/2019 at 07:35PM

30
#110 - Lory / @Lory46845742

11/08/2019 at 12:57PM

30
#111 - Michael Meixner / @meixner62

01/23/2020 at 01:53PM

30
#112 - Jason Neylon / @jasonneylon

01/24/2020 at 05:55PM

31
#113 - Oran / @Oranav

08/15/2018 at 11:46AM

31
#114 - Igor Sowinski / @IgorSowinski

08/15/2018 at 12:13PM

31
#115 - Ano Nym / @AnoNym39473378

08/18/2018 at 01:51PM

31
#116 - Daniel Vaqueiro / @chimidea

08/25/2018 at 12:27AM

31
#117 - Alexander Covington / @ACov96

08/30/2018 at 03:10PM

31
#118 - 安藤 / @andou2106

09/03/2018 at 04:23PM

31
#119 - Koo Zhengqun / @zhengqunkoo

09/28/2018 at 03:23AM

31
#120 - caplod / @caplod

10/17/2018 at 08:06PM