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 56 remaining solutions by signing in and submitting your own entry
#57 Jeremiah Goyette / JeremiahGoyette - Score: 36 - 08/04/16 @ 01:05
j:s/\(\s\w*\),\?/\r   \1:\1/gc<CR>nnaZZ

0 comments

#58 Andrew Smith / amazing_andrew - Score: 36 - 08/14/16 @ 01:47
jA, <Esc>:s/\(\w\+\), /\r    \1: \1/g<CR>ZZ

0 comments

#59 Sebastian Korten / FlashKorten - Score: 38 - 03/04/15 @ 11:28
jElr<CR>:s!, !<C-V><CR>  !g<CR>:3,5s!\w\+!  &: &<CR>ZZ

0 comments

#60 Benny Wong / bdotdub - Score: 38 - 04/14/15 @ 03:04
/g<CR>lr<CR>wi  <Esc>wqqywPa: <Esc>q/,<CR>r<CR>w@qnr<CR>w@qZZ

0 comments

#61 Kiet Nguyen / kietnguyen86 - Score: 39 - 03/08/15 @ 01:49
jElr<CR>hxx:s/, /\r/g<CR>qd4i <Esc>yEA:<Esc>pk0q2@dZZ

0 comments

#62 Evan Coleman / edc1591 - Score: 39 - 04/14/15 @ 03:17
jElr<CR>hxx:s/, /\r/g<CR>qq4i <Esc>yEA:<Esc>pk0q2@qZZ

0 comments

#63 Cosmin Banu / cosminb82 - Score: 39 - 05/06/15 @ 20:59
jEa,<Esc>:s/, /\r/g<CR>Vkk:s/.*/    \0: \0/<CR>ZZ

0 comments

#64 Tom van der Lee / TomVdLee - Score: 41 - 04/17/15 @ 14:24
jElr<CR><Esc>:s/, /\r  /g<CR>qq:s/<C-R><C-W>/  &: &<CR>kq2@qZZ

0 comments

#65 cg.sg.im / CoGe_StGa_idma - Score: 42 - 03/31/15 @ 00:46
<CR>Ea,<Esc>:s/, /<C-V><CR>/g<CR>qqyeA: <Esc>p-q2@q<CR><C-V>jjI    <Esc>ZZ

0 comments

#66 DrHobo / _DrHobo_ - Score: 43 - 03/05/15 @ 20:07
j:s/\v(\w+)(, |$)/\r\1: \1/g<CR><C-V>kkI    <Esc>k$xZZ

0 comments

#67 Deepak Surti / dmsurti - Score: 46 - 03/13/15 @ 14:55
jfga<CR>  <Esc>:s/, /\r    /g<CR>:3,5s/\v(\w+)/\0: \1<CR>ZZ

0 comments

#68 Joel Gallant / joelg236 - Score: 46 - 10/07/16 @ 17:30
jEa<CR>  <Esc>qqyt,f,i:<Esc>plR<CR><Del><Del><Esc>2@q@q@qq@q@qA: link<Esc>ZZ

0 comments

#69 Jakub Horák / kubahorak - Score: 48 - 03/05/15 @ 16:00
:2s/\s\(\w\+\),\?/\r    \1: \1/g<CR>4kddd2w<<i  <Esc>ZZ

0 comments

#70 Dane Summers / dsummersl - Score: 54 - 03/07/15 @ 00:41
j:s/, /<C-V><CR>/g<CR>2kE xi<CR><BS><BS><C-C><C-C>VG:s/\w*/\0: \0<CR>i    <C-C><C-C>kB.kB.ZZ

0 comments

#71 ɐʇnɥsɐpoʇ / todashuta - Score: 57 - 03/25/15 @ 09:19
3/, <CR>cgn<CR><Esc>.2/ cont<CR>r<CR>yypjyypjyypnA:<Esc>JjA:<Esc>JjA:<Esc>Jn<C-V>2jI  <Esc>ZZ

0 comments

Created by: yaachi

71 active golfers, 243 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 / ricardolimaapps

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 - Assaf Lavie / 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 - Foo Bar / foobar01123

06/02/2016 at 07:45PM

21
#19 - Turkey Man / lvturkeyman

11/26/2017 at 08:30AM

22
#20 - Mariano Macchi / mmacchif

03/04/2015 at 04:21PM

22
#21 - Ben Plantinga / benplantinga

03/05/2015 at 06:41AM

22
#22 - Dimitar Dimitrov / kurkale6ka

03/17/2016 at 04:10PM

23
#23 - Marcelo Montu / _mMontu_

03/20/2015 at 02:06PM

23
#24 - Joonas Pihlajamaa / jokkebk

03/26/2015 at 12:46PM

23
#25 - pftb12345 / pftb12345

03/29/2015 at 12:47PM

23
#26 - YAMADA Yukimi / edp02

03/30/2015 at 02:55PM

24
#27 - Carlos A Henríquez Q / lagunex

03/04/2015 at 02:52PM

24
#28 - Matthieu Crapet / mcr05

03/04/2015 at 04:17PM

24
#29 - octotep / octotep

03/04/2015 at 08:52PM

24
#30 - Mike McGowan / mikemcgowan75

03/08/2015 at 07:42PM

24
#31 - E Both / enboth

04/07/2015 at 09:45PM

24
#32 - Tim Vail / timdvail

08/05/2015 at 03:44AM

24
#33 - Walker Boh / walker_boh

10/12/2015 at 08:22AM

25
#34 - Jeremie / jermoer

03/04/2015 at 10:33PM

25
#35 - Laurent Stacul / stac47

03/05/2015 at 01:09PM

26
#36 - TheProgrammer971 / tp971

03/13/2015 at 09:52PM

28
#37 - Zach Kelling / zeekay

03/04/2015 at 01:25PM

28
#38 - Carlos López / morrizon

03/04/2015 at 01:31PM

28
#39 - Yuan Guan / yuanguan89

03/05/2015 at 05:00AM

29
#40 - Mauro Persano / fzort

06/04/2015 at 05:02PM

29
#41 - Gurukandhamoorthi / Gurukandhamoor1

07/16/2017 at 03:55PM

30
#42 - James / Dronak

03/11/2015 at 07:03PM

31
#43 - US Dollar Price / USDollarPrice

03/07/2015 at 11:46PM

32
#44 - Kenny / zumalifeguard

03/07/2015 at 03:03AM

33
#45 - Dan Oneata / DanOneata

03/11/2015 at 02:30PM

33
#46 - Grigoriy Glushko / grinderrz

03/12/2015 at 02:54PM

33
#47 - Louis Caruana / louiecaruana

03/17/2015 at 04:34AM

33
#48 - ipson_nek / ipson_nek

03/26/2015 at 02:57PM

33
#49 - Charles Joachim / cacplate

04/18/2015 at 01:24PM

33
#50 - MrTchuss / buffer_x90

08/08/2015 at 03:24PM

34
#51 - chvzvhn / chvzvhn

04/26/2015 at 05:01AM

35
#52 - Matthew Sterritt / GodJinrai

03/10/2015 at 03:09PM

35
#53 - [object Object] / marinintim

10/15/2015 at 02:59PM

35
#54 - Tj / yrddy

03/02/2016 at 04:42AM

36
#55 - Anoop Kumar / anooplive

03/05/2015 at 02:46PM

36
#56 - Wandering ponderer / 0proxycon

03/10/2015 at 10:23PM

36
#57 - Jeremiah Goyette / JeremiahGoyette

08/04/2016 at 01:05AM

36
#58 - Andrew Smith / amazing_andrew

08/14/2016 at 01:47AM

38
#59 - Sebastian Korten / FlashKorten

03/04/2015 at 11:28AM

38
#60 - Benny Wong / bdotdub

04/14/2015 at 03:04AM

39
#61 - Kiet Nguyen / kietnguyen86

03/08/2015 at 01:49AM

39
#62 - Evan Coleman / edc1591

04/14/2015 at 03:17AM

39
#63 - Cosmin Banu / cosminb82

05/06/2015 at 08:59PM

41
#64 - Tom van der Lee / TomVdLee

04/17/2015 at 02:24PM

42
#65 - cg.sg.im / CoGe_StGa_idma

03/31/2015 at 12:46AM

43
#66 - DrHobo / _DrHobo_

03/05/2015 at 08:07PM

46
#67 - Deepak Surti / dmsurti

03/13/2015 at 02:55PM

46
#68 - Joel Gallant / joelg236

10/07/2016 at 05:30PM

48
#69 - Jakub Horák / kubahorak

03/05/2015 at 04:00PM

54
#70 - Dane Summers / dsummersl

03/07/2015 at 12:41AM

57
#71 - ɐʇnɥsɐpoʇ / todashuta

03/25/2015 at 09:19AM