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

213 active golfers, 801 entries

Leaderboard (lowest score wins):
30
#121 - roudens / @roudens2

01/15/2021 at 11:27AM

31
#122 - Oran / @Oranav

08/15/2018 at 11:46AM

31
#123 - Igor Sowinski / @IgorSowinski

08/15/2018 at 12:13PM

31
#124 - Ano Nym / @AnoNym39473378

08/18/2018 at 01:51PM

31
#125 - Daniel Vaqueiro / @chimidea

08/25/2018 at 12:27AM

31
#126 - Alexander Covington / @ACov96

08/30/2018 at 03:10PM

31
#127 - 安藤 / @andou2106

09/03/2018 at 04:23PM

31
#128 - Koo Zhengqun / @zhengqunkoo

09/28/2018 at 03:23AM

31
#129 - caplod / @caplod

10/17/2018 at 08:06PM

31
#130 - Fabio Branquinho / @branquif

11/08/2018 at 02:02PM

31
#131 - Anant Mishra / @anantanni22

12/08/2018 at 04:21PM

31
#132 - aka / @aaik4

12/23/2018 at 03:26AM

31
#133 - Dmatrix / @Dr_Dmatrix

01/11/2019 at 09:05PM

31
#134 - wrglprmft / @wrglprmft

01/19/2019 at 09:32PM

31
#135 - Matt Vaughn / @mattttvaughn

08/04/2019 at 04:49AM

31
#136 - pysnow530 / @pysnow530

11/24/2019 at 04:34AM

31
#137 - José / @AngelGaldamez

05/04/2020 at 04:57AM

31
#138 - Jason / @roosjason

05/07/2020 at 11:30AM

32
#139 - 徐学健 / @zebrallel

08/14/2018 at 03:37AM

32
#140 - Mike Harris / @MikeMJHarris

08/15/2018 at 10:55AM

32
#141 - Hugo / @szeyattai

08/17/2018 at 07:36AM

32
#142 - Weston Neal / @wtneal

08/31/2018 at 06:33PM

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

09/07/2018 at 03:41AM

32
#144 - Stefan Heyder / @Astheny_

09/17/2018 at 12:33PM

32
#145 - Kyle Safran / @kylesafran

01/22/2019 at 07:26PM

32
#146 - Saphire Lattice / @SaphireLattice

03/06/2019 at 06:49AM

32
#147 - aᵣᵤhᵢ / @aruhi_

10/15/2019 at 11:57PM

32
#148 - kafang plays vimgolf / @KafangV

12/18/2020 at 04:32AM

32
#149 - Jean George / @JeanGeo20504212

09/13/2021 at 05:42PM

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

08/14/2018 at 12:05AM