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 56fb2e75ccffcc0009026473

One number per line

Just give me the numbers.

Start file
- One number per line -
-----------------------
2,3,5,7,
11,13,17,
19,23,29,
End file
2
3
5
7
11
13
17
19
23
29

View Diff

Your target is 14. I don't think this one will last 24 hours. :)

Hopefully it's a good addition to the challenge set though. Enjoy.

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 2946 remaining solutions by signing in and submitting your own entry
#2947 호도르 / @5jhDIioJ2FEnDbB - Score: 327 - 07/26/18 @ 06:28
dfd<Esc>kjkd2dlhlx<CR>ku:norm ax<Esc><Esc>kjkxi<CR><Esc>.uuua<BS><CR><Esc>.uuuuuud2<Esc><Esc><Esc><Esc>d2d<Esc><Esc><Esc>jkl:%s <BS>/,/\n/g<BS><BS><BS><BS>\ <BS>n/g<CR>u<Esc><Esc><Esc><Esc>:%s /,/\\n/g<CR>ukjlklhkjk:%s /,/\<BS><CR>/g<CR>u:<Up><Left><Left><Left><BS><BS>cr<CR><Esc>ukjlk:<Up><Left><Left><Left>:<BS><Right><Right><Right><BS><BS><BS><BS><BS><BS>\s/g<BS><BS><BS><BS>/g<BS><BS>\r/g<CR>u<Up><Up><Up><Up>:<Up><CR>u<Esc>llllllllggjkluuuuuuudj<Esc>ud22d<Esc>uud2d<Esc>l:%s/,/[<BS>\r/g<CR>:g ^$<BS>$<Esc>uu<C-R><Esc><Esc>:5<BS>%s /.<BS>,/\g<BS>r/g<cr><BS><BS><BS>CR><CR><Up>:<Up><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>:<Up><BS><BS><BS><BS><CR>:g<BS> <BS>g /^$/g<BS>dd/<BS><BS><CR>ZZ

0 comments


Created by: @udioica

2947 active golfers, 13706 entries

Leaderboard (lowest score wins):
18
#1111 - Jeff / @sir_wiggles3

09/07/2018 at 07:25AM

18
#1112 - ajs / @_ajsantander

10/15/2018 at 04:59PM

18
#1113 - Reuben Narkwo / @reubwo

10/16/2018 at 11:00PM

18
#1114 - Dima Matrohin / @wo_ogy

10/25/2018 at 10:16PM

18
#1115 - Juliette but spooky / @namebrandloser

10/26/2018 at 10:01PM

18
#1116 - Ole Mussmann / @isbjornlabs

10/27/2018 at 11:21PM

18
#1117 - band / @band26376522

12/04/2018 at 08:08PM

18
#1118 - Marten Ringwelski / @Marteon27

12/09/2018 at 04:27PM

18
#1119 - Jamie Syme / @_jsyme

12/16/2018 at 04:11AM

18
#1120 - Sebastien Nicoud / @sebnukem

12/23/2018 at 02:45AM

18
#1121 - Visualizing Medicine / @VisualizeMed

12/28/2018 at 05:22PM

18
#1122 - たくみー(転職ドラシル) / @reirei_As

01/08/2019 at 07:50AM

18
#1123 - Alex Tercete / @alextercete

01/21/2019 at 06:26PM

18
#1124 - Jack Zhou / @jzhouuuuuuuuu

01/27/2019 at 09:38AM

18
#1125 - tp971 / @tp971

01/30/2019 at 07:51PM

18
#1126 - noisevoid / @noisevoid

03/01/2019 at 10:16PM

18
#1127 - Robert Orr / @orrrobert

03/08/2019 at 07:07PM

18
#1128 - Scott / @chil2

04/01/2019 at 07:11PM

18
#1129 - Loنtre / @OtterPy

04/05/2019 at 01:01PM

18
#1130 - 이종혁 / @BluePaisa

04/17/2019 at 08:16AM

18
#1131 - Rob Pilling / @bobrippling

04/17/2019 at 01:13PM

18
#1132 - Baggykiin / @Baggykiin

04/22/2019 at 03:28AM

18
#1133 - Quinn Collins / @Quinn00239061

05/06/2019 at 07:08PM

18
#1134 - Дима / @dimkino

05/29/2019 at 08:56PM

18
#1135 - David / @Liimero

06/06/2019 at 07:48PM

18
#1136 - April / @April90303877

07/04/2019 at 04:18PM

18
#1137 - mocoma / @mocoma1

07/10/2019 at 06:53PM

18
#1138 - Zach? / @zippity_zoppity

07/22/2019 at 07:43PM

18
#1139 - Rasmus Öhman Bruno / @rasmohman

07/22/2019 at 08:04PM

18
#1140 - Hayden Wang / @HaydenWang2

07/30/2019 at 09:04AM