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

2896 active golfers, 13426 entries

Leaderboard (lowest score wins):
19
#1351 - Warley Vital / @wlativ

03/18/2018 at 09:13PM

19
#1352 - Paul Page / @theRealPaulPage

03/19/2018 at 09:16PM

19
#1353 - David Pimentel / @daveypimentel

03/22/2018 at 09:16PM

19
#1354 - Paul Draghicescu / @pdragy

03/23/2018 at 06:26AM

19
#1355 - Tim / @munnadugga

03/29/2018 at 08:56PM

19
#1356 - DHM / @DHM29978992

04/09/2018 at 04:40AM

19
#1357 - J Paul Daigle / @philosodad

04/11/2018 at 02:33PM

19
#1358 - Kevin Köster / @koestr

04/13/2018 at 10:05PM

19
#1359 - David Guevel / @davidguevel

04/20/2018 at 03:03AM

19
#1360 - Vanda Hendrychová / @vandiacutek

04/24/2018 at 02:55PM

19
#1361 - Valerio Angelini / @amailp

05/03/2018 at 01:09PM

19
#1362 - Johann Og / @Kronolynx

05/03/2018 at 11:12PM

19
#1363 - Jesse Olson / @bioxcession

05/04/2018 at 09:47PM

19
#1364 - Darren Shen / @recurshen

05/05/2018 at 11:48AM

19
#1365 - Owen Loughran / @_ObeseAnorexic_

05/07/2018 at 05:46PM

19
#1366 - Aunt Jovie / @auntjovie

05/09/2018 at 10:53PM

19
#1367 - Bimal Gaudel / @BimalGaudel

05/10/2018 at 04:20PM

19
#1368 - Don Nguyen / @baodon2703

05/25/2018 at 06:43AM

19
#1369 - José Rodrigues / @jyrodrigues

05/26/2018 at 02:45AM

19
#1370 - r / @revanthedarth

05/27/2018 at 02:44PM

19
#1371 - Leila Loezer / @leilaloezer

06/02/2018 at 05:26PM

19
#1372 - 石奕心 / @allenshih1

06/07/2018 at 12:34AM

19
#1373 - Mateen Ulhaq / @sicariusnoctis

06/10/2018 at 02:14AM

19
#1374 - Xiangyu Xu / @bkbncn

06/10/2018 at 06:43AM

19
#1375 - 赤佐田奈葉 / @akasatanaha_

06/26/2018 at 02:33AM

19
#1376 - nimms / @insofrnet

07/02/2018 at 11:47AM

19
#1377 - Torsten Hendrich / @TorstenHendrich

07/09/2018 at 01:01PM

19
#1378 - Jens Thomas / @_jthomas

07/17/2018 at 06:43PM

19
#1379 - Apox / @apox159

07/18/2018 at 09:27PM

19
#1380 - BartJanssen / @BartJanssen

07/23/2018 at 09:35AM