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

2771 active golfers, 12725 entries

Leaderboard (lowest score wins):
19
#1381 - John Smith / @JohnSmi14480159

01/09/2019 at 09:13AM

19
#1382 - py / @py97235249

01/17/2019 at 03:32AM

19
#1383 - Sam / @sam_hths

01/26/2019 at 04:23AM

19
#1384 - HuyHung / @hungdh0x5e

01/31/2019 at 02:24AM

19
#1385 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 10:11PM

19
#1386 - Fongxuan / @FongX_L

02/13/2019 at 06:16AM

19
#1387 - Bobby Tables / @BobbyTables12

02/21/2019 at 05:57PM

19
#1388 - algebraic-geometric / @algebraicgeome1

02/24/2019 at 03:54PM

19
#1389 - Groovy / @groovy9

03/06/2019 at 09:15PM

19
#1390 - No Not / @NoNot44894988

03/09/2019 at 12:12PM

19
#1391 - Tarik IRHBOULA / @tarik12009

03/10/2019 at 11:32PM

19
#1392 - cyrt / @cyrt4

03/12/2019 at 11:59AM

19
#1393 - Gabriel / @cimourdain

03/20/2019 at 02:05PM

19
#1394 - mfgujhgh / @mfgujhgh

03/21/2019 at 01:53PM

19
#1395 - Brad Daniels / @JBradDaniels

03/29/2019 at 01:41AM

19
#1396 - Mark Stillwell / @marklee77

03/31/2019 at 10:42PM

19
#1397 - Herman Stavelin / @HsBruker

04/05/2019 at 03:00PM

19
#1398 - Nieko Maatjes / @niekomaatjes

04/06/2019 at 12:11PM

19
#1399 - royaso / @royaso

04/12/2019 at 04:16AM

19
#1400 - Michał Łowicki / @mlowicki

04/12/2019 at 11:44AM

19
#1401 - SamuelLee / @SamuelLee90

04/15/2019 at 06:14AM

19
#1402 - Pratik / @prathik_t

04/16/2019 at 12:10PM

19
#1403 - Chris Robson / @cjrobson5

04/17/2019 at 10:49AM

19
#1404 - Rand Omperson / @197258444

04/17/2019 at 05:40PM

19
#1405 - Jason Chen / @shchenchang

04/27/2019 at 12:20AM

19
#1406 - 김현수 / @flyhigh43

04/27/2019 at 05:09PM

19
#1407 - Anthony GRASSIOT / @antograssiot

05/04/2019 at 07:32PM

19
#1408 - Aldehir Rojas / @aldehirrojas

05/07/2019 at 05:41AM

19
#1409 - chihiro / @chihiro0940

05/09/2019 at 01:38PM

19
#1410 - vimgolfer24271 / @vimgolfer24271

05/10/2019 at 09:35PM