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

227 active golfers, 857 entries

Leaderboard (lowest score wins):
29
#1 - Jon Krause / @jkrause314

08/14/2018 at 05:53AM

29
#2 - Saki Gw / @Sakigw

08/14/2018 at 07:23AM

29
#3 - "Smylers" / @Smylers2

08/14/2018 at 09:12AM

29
#4 - John Braxler / @braxler

08/14/2018 at 02:23PM

29
#5 - wes / @_weslly

08/14/2018 at 05:50PM

29
#6 - Keldwik Chaldain / @Suskeyhose

08/14/2018 at 08:32PM

29
#7 - Edras / @Edras41862627

08/15/2018 at 11:54AM

29
#8 - zmf_tim / @zmf_tim

08/15/2018 at 10:25PM

29
#9 - Noel Qiao / @NoelQiao

08/17/2018 at 01:08AM

29
#10 - Ricardo Lima / @ricponteslima

08/17/2018 at 10:53PM

29
#11 - Andre Cato / @DreBear800

08/18/2018 at 12:35AM

29
#12 - Zack Bleach / @zackbleach

08/18/2018 at 04:49AM

29
#13 - Тёма / @Timon_Surikat

08/18/2018 at 01:10PM

29
#14 - c0llision / @sh3llcode

08/18/2018 at 01:45PM

29
#15 - Rajesh Sharma / @deepredsky

08/18/2018 at 07:34PM

29
#16 - ♜ Pepe Doval / @pepellou

08/21/2018 at 11:14PM

29
#17 - tPenguinLTG / @tpenguinltg

08/22/2018 at 02:44AM

29
#18 - Cam Smith / @Comradesmith

08/22/2018 at 08:18AM

29
#19 - Cathal McGuire / @cmcguire79

08/24/2018 at 02:59PM

29
#20 - Francisco Rivera / @frivera621

08/25/2018 at 04:24PM

29
#21 - A Programmer / @hlprogrammer

08/26/2018 at 01:29AM

29
#22 - Chi Jun / @jun13blu

08/28/2018 at 05:51AM

29
#23 - Joey / @joeyism101

09/03/2018 at 01:57AM

29
#24 - Lee Saville / @LeeSaville

09/04/2018 at 12:34PM

29
#25 - Epecb / @BceEpecb

09/04/2018 at 05:09PM

29
#26 - a / @a05150445

09/06/2018 at 02:55AM

29
#27 - royer / @RoyerMoyer1

09/14/2018 at 09:51PM

29
#28 - DustVoice / @DustVoice

09/17/2018 at 09:17PM

29
#29 - konankun / @__konankun

09/18/2018 at 09:21AM

29
#30 - Turkey Man / @lvturkeyman

09/20/2018 at 02:04AM