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):
34
#151 - Bennett / @bennettbackward

12/20/2018 at 12:23PM

34
#152 - Slawek Ligus / @ooz_ie

01/14/2019 at 07:51PM

34
#153 - Matthias Kausl / @sig_segv

04/25/2019 at 06:03PM

34
#154 - Jonathan Lozinski / @jlozinski

09/30/2019 at 07:50AM

35
#155 - some call me mattp / @mattpep

08/14/2018 at 05:22PM

35
#156 - Levi Self / @LeviRSelf

11/18/2018 at 09:32AM

35
#157 - zenwalker / @zenwalker93

03/10/2019 at 03:19PM

36
#158 - Shutterspot Photo / @shutterspot

08/14/2018 at 07:21AM

36
#159 - Sports Fan LaBerge / @BigBoiLaBerge

08/16/2018 at 08:29PM

36
#160 - Miki Tebeka / @tebeka

08/18/2018 at 01:22PM

36
#161 - Mark Oswald / @mrkosw

08/21/2018 at 01:46PM

36
#162 - Julià Mestieri / @julimestieri

09/13/2018 at 10:44AM

36
#163 - Dax / @daaawx

10/17/2018 at 03:54PM

36
#164 - Luis Rodriguez / @luisthecoder

11/12/2018 at 09:30PM

36
#165 - Chester Yap / @Chest_ErYap

07/10/2019 at 01:26AM

36
#166 - xovadirij / @xovadirij

10/07/2019 at 07:05PM

37
#167 - Jakub Horák / @kubahorak

08/20/2018 at 11:57AM

37
#168 - Paul Inc / @hiniol1982

10/18/2018 at 07:13PM

37
#169 - 永森 / @nagk05

11/17/2018 at 07:15AM

37
#170 - tuyen / @tuyen66827418

11/22/2018 at 02:40PM

37
#171 - Oren Koriat / @KoriatOren

12/06/2018 at 02:00PM

37
#172 - Emil Braserud / @Erdustiggen

03/25/2019 at 09:02AM

38
#173 - Vanildo S. Mangueira / @vanildo_souto

08/14/2018 at 02:26PM

38
#174 - Di Peng / @DCodier

10/31/2018 at 12:45PM

39
#175 - Chris Maher / @chrismaherthe

11/15/2018 at 02:38AM

39
#176 - venkatakrishnan / @venkatk_

04/15/2019 at 02:51AM

39
#177 - albalitz / @_albalitz

06/05/2019 at 08:37AM

40
#178 - Simon Ingelsson / @_DeVVaN_

08/15/2018 at 03:05PM

40
#179 - Ryan Daniels / @RyanNeilDaniels

08/28/2018 at 08:35AM

40
#180 - rg thomas / @rgt47

10/23/2018 at 03:46PM