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):
29
#61 - k24w24 / @k24w24

03/27/2019 at 09:20AM

29
#62 - alekfed / @alek_fed

04/14/2019 at 09:35PM

29
#63 - Grant / @grant_7788

04/28/2019 at 02:56AM

29
#64 - Sherab Giovannini / @shaddycls

05/02/2019 at 10:11PM

29
#65 - majo senf / @majo_senf

06/17/2019 at 09:45AM

29
#66 - Miłosz Łakomy / @foobar01123

06/21/2019 at 06:37AM

29
#67 - Rasmus Öhman Bruno / @rasmohman

07/23/2019 at 12:50PM

29
#68 - sooqua / @sooqua

08/08/2019 at 08:35PM

29
#69 - Joe Fahnestock🌵 / @Joecupojoe

08/09/2019 at 01:39AM

29
#70 - Chris Shorrock / @EbinFlow

08/14/2019 at 10:31PM

29
#71 - Martin Delille / @martinodelilo

08/24/2019 at 12:27PM

29
#72 - Cassandra / @kascein

09/17/2019 at 06:52PM

29
#73 - vimgolfer / @vimgolfer7

09/28/2019 at 05:22PM

29
#74 - Viktor Styrud / @ViktorStyrud

10/07/2019 at 01:39PM

29
#75 - Mario Olofo / @mario_olofo

10/22/2019 at 01:57AM

29
#76 - leo / @leo28356948

10/28/2019 at 10:01AM

29
#77 - Melvin Cheung / @MelvinCheung

11/08/2019 at 07:23AM

29
#78 - vicver09 / @vicver091

12/17/2019 at 10:56PM

29
#79 - Delon / @delonleonard

12/28/2019 at 11:29PM

29
#80 - countime / @countime1

03/12/2020 at 10:39AM

29
#81 - floyd / @floyd10086

03/20/2020 at 09:41AM

29
#82 - Moatvald / @moatvald

05/13/2020 at 06:21AM

29
#83 - 于吉星 / @fishermryn

05/28/2020 at 09:14AM

29
#84 - Ming Dai / @MingDai2

07/01/2020 at 03:13PM

29
#85 - Jung Yeon Park / @park_jungy

01/11/2021 at 04:23PM

29
#86 - A A A / @37fatos

01/16/2021 at 05:20PM

30
#87 - ؜ / @h43z

08/14/2018 at 01:37AM

30
#88 - PCS Solutions / @PeteSolutions

08/14/2018 at 07:08PM

30
#89 - Valacar / @valacar

08/15/2018 at 07:05PM

30
#90 - Alexander Zheleznov / @ephemerr

08/16/2018 at 07:45AM