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 54f6e85d8dca0315e1010de1

Logging with key

Sometimes it is better to log with meaningful key

Start file
window.nestedFormEvents.insertFields = (content, assoc, link) ->
  console
.log content, assoc, link
End file
window.nestedFormEvents.insertFields = (content, assoc, link) ->
  console
.log
    content
: content
    assoc
: assoc
    link
: link

View Diff

2c2,5
<   console.log content, assoc, link
---
>   console.log
>     content: content
>     assoc: assoc
>     link: link

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 87 remaining solutions by signing in and submitting your own entry
#88 Jurica / @Jurica34581259 - Score: 89 - 12/11/18 @ 14:58
/og<CR>2ld$o<Esc>p0:s/[ ,]\([a-z]\*<BS><Esc><Esc><Esc>:<Up>+<Left><Left><Left><Left><Left><Left><Left><Left><Left>\+<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>\)/    \1: \1\n/g<CR>u:<Up><Left><Left><Left><Right><BS>r<CR><Esc>ddZZ

0 comments


Created by: @yaachi

88 active golfers, 328 entries

Leaderboard (lowest score wins):
21
#1 - Urtica dioica / @udioica

03/04/2015 at 04:45PM

21
#2 - Matthew Pryor / @HodgekaGames

03/04/2015 at 06:28PM

21
#3 - John Braxler / @braxler

03/05/2015 at 05:05PM

21
#4 - Alan Berndt / @bentglasstube

03/05/2015 at 06:20PM

21
#5 - Petro Тrouq / @zulolosi

03/05/2015 at 09:55PM

21
#6 - Ala' Ibrahim / @alaa_ibrahim

03/05/2015 at 11:39PM

21
#7 - Augustin Trancart / @autra42

03/07/2015 at 02:26PM

21
#8 - kimber gonzalez / @kimberlycreates

03/10/2015 at 01:50PM

21
#9 - Andrew / @WK3AS

03/10/2015 at 03:21PM

21
#10 - Ricardo Lima / @ricponteslima

03/11/2015 at 05:08PM

21
#11 - Yann Moisan / @YannMoisan

03/15/2015 at 09:17AM

21
#12 - You Mustnotknow / @y8hVz6fJdm6Lt5q

04/03/2015 at 07:29PM

21
#13 - we’re going to need a bigger bot / @assaflavie

04/17/2015 at 05:19PM

21
#14 - Andreas Carben / @meiner_eins

04/26/2015 at 12:20PM

21
#15 - Mutter Mumble / @muttermumble

07/10/2015 at 02:40PM

21
#16 - Mike Adams / @davis_cromwell

10/11/2015 at 02:26AM

21
#17 - Aleksey Zhidkov / @AlexeyZhidkov

03/09/2016 at 05:51AM

21
#18 - Miłosz Łakomy / @foobar01123

06/02/2016 at 07:45PM

21
#19 - Turkey Man / @lvturkeyman

11/26/2017 at 08:30AM

21
#20 - BarbaJol / @drpproteus

01/04/2018 at 01:24PM

21
#21 - Arijus / @argshook

03/22/2018 at 02:04PM

21
#22 - Jon Krause / @jkrause314

12/19/2020 at 03:34AM

21
#23 - Jean George / @JeanGeo20504212

04/03/2022 at 10:54PM

21
#24 - Janzen / @__Coos

09/30/2022 at 01:40PM

21
#25 - Peppa Pig / @PeppaPigSg

07/03/2024 at 02:10AM

21
#26 - nickGPT / @nickandbro

08/28/2024 at 04:29AM

22
#27 - Mariano Macchi / @mmacchif

03/04/2015 at 04:21PM

22
#28 - Ben Plantinga / @benplantinga

03/05/2015 at 06:41AM

22
#29 - Dimitar Dimitrov / @kurkale6ka

03/17/2016 at 04:10PM

22
#30 - DHM / @DHM29978992

05/01/2018 at 01:31AM