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 3897 remaining solutions by signing in and submitting your own entry
#3898 호도르 / @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

3898 active golfers, 18889 entries

Leaderboard (lowest score wins):
20
#2281 - Pham Tuan Anh / @anhpt379

02/16/2020 at 10:58AM

20
#2282 - ipv4 has run out / @jchook

03/07/2020 at 03:16AM

20
#2283 - Amado Antonini / @AmadoAntonini

03/31/2020 at 03:39AM

20
#2284 - Petru-Armand Bancila / @petruarmand

04/07/2020 at 04:17AM

20
#2285 - Seve / @Seve_py

04/08/2020 at 09:53AM

20
#2286 - abdellah hariti / @_hariti

04/26/2020 at 07:19PM

20
#2287 - Nicolas Daval / @ndaval

04/30/2020 at 12:34PM

20
#2288 - Christophe Kafrouni / @KafrouniChris

04/30/2020 at 02:43PM

20
#2289 - Quentin Leroy / @qnleroy

05/07/2020 at 08:00PM

20
#2290 - bigsystem / @bigsystem2

05/28/2020 at 02:38PM

20
#2291 - Yannick / @Yannick88147038

05/31/2020 at 08:20PM

20
#2292 - Patrick Weigert / @PatrickWeigert

06/01/2020 at 01:02AM

20
#2293 - nbspAD / @AdNbsp

06/01/2020 at 03:45PM

20
#2294 - Kieran / @Kieran39992130

06/02/2020 at 05:38AM

20
#2295 - Imer Chavez / @imer_chavez

06/30/2020 at 12:37AM

20
#2296 - Daniel Habib / @danielhvs

07/20/2020 at 03:54AM

20
#2297 - Thiago Becker / @beckert

08/03/2020 at 07:57PM

20
#2298 - 𝙁𝙖𝙩 𝙍𝙚𝙩𝙖𝙧𝙙 ® / @Rapists4Biden

08/06/2020 at 01:05AM

20
#2299 - vito / @vito49999722

08/10/2020 at 06:56AM

20
#2300 - João Pedro B Nadas / @jpnadas

08/15/2020 at 12:07PM

20
#2301 - Camilo A. Matajira / @CamiloMatajira

08/30/2020 at 10:53AM

20
#2302 - Sebastian W. / @Sebasti91439242

09/01/2020 at 07:12PM

20
#2303 - Luc Kien Hang / @luckienhang

09/03/2020 at 11:07PM

20
#2304 - David / @imdavidhwang

09/04/2020 at 07:47PM

20
#2305 - Václav Pernička / @VaclavPernicka

09/05/2020 at 08:36PM

20
#2306 - Pepe / @PedroVassena

09/08/2020 at 07:34AM

20
#2307 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/15/2020 at 03:15PM

20
#2308 - Olivier Martin / @oliviermartin

09/20/2020 at 08:51PM

20
#2309 - " / @bluugs

09/26/2020 at 09:39AM

20
#2310 - Ben Wainwright / @benwainwrightuk

09/28/2020 at 09:09PM