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

3025 active golfers, 14214 entries

Leaderboard (lowest score wins):
19
#1501 - Herman Stavelin / @HsBruker

04/05/2019 at 03:00PM

19
#1502 - Nieko Maatjes / @niekomaatjes

04/06/2019 at 12:11PM

19
#1503 - royaso / @royaso

04/12/2019 at 04:16AM

19
#1504 - Michał Łowicki / @mlowicki

04/12/2019 at 11:44AM

19
#1505 - SamuelLee / @SamuelLee90

04/15/2019 at 06:14AM

19
#1506 - Pratik / @prathik_t

04/16/2019 at 12:10PM

19
#1507 - Chris Robson / @cjrobson5

04/17/2019 at 10:49AM

19
#1508 - Rand Omperson / @197258444

04/17/2019 at 05:40PM

19
#1509 - Jason Chen / @shchenchang

04/27/2019 at 12:20AM

19
#1510 - 김현수 / @flyhigh43

04/27/2019 at 05:09PM

19
#1511 - Anthony GRASSIOT / @antograssiot

05/04/2019 at 07:32PM

19
#1512 - Aldehir Rojas / @aldehirrojas

05/07/2019 at 05:41AM

19
#1513 - chihiro / @chihiro0940

05/09/2019 at 01:38PM

19
#1514 - vimgolfer24271 / @vimgolfer24271

05/10/2019 at 09:35PM

19
#1515 - Daniel Hakimian / @danrafhak

05/15/2019 at 03:10AM

19
#1516 - salmiak / @salmiak7

05/15/2019 at 10:29PM

19
#1517 - Francesco Versaci / @francescoversa

05/24/2019 at 03:54PM

19
#1518 - Gar Morley / @garmorley

05/25/2019 at 09:23AM

19
#1519 - shaz / @shaz30307204

05/28/2019 at 08:01AM

19
#1520 - throw away / @f44lyf

05/29/2019 at 09:11PM

19
#1521 - El Carpet / @elcarpet

05/30/2019 at 07:58PM

19
#1522 - Lie Ryan / @lieryan

05/31/2019 at 03:09PM

19
#1523 - aleix / @amg_fish

06/01/2019 at 05:18AM

19
#1524 - Edan Sneh / @edan_sneh

06/04/2019 at 07:27AM

19
#1525 - deurzen / @devrzen

06/06/2019 at 11:05AM

19
#1526 - Chris G / @AboutThatThing

06/10/2019 at 09:28AM

19
#1527 - Grzegorz Andrzejowski / @AndrzejowskiG

06/17/2019 at 12:46PM

19
#1528 - Elan Dubrofsky / @dubroe

06/19/2019 at 09:24PM

19
#1529 - せいほう / @FICSQF

07/04/2019 at 11:56PM

19
#1530 - c0llision / @sh3llcode

07/09/2019 at 03:28PM