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

3024 active golfers, 14200 entries

Leaderboard (lowest score wins):
19
#1321 - Mark Faga / @markjfaga

05/04/2017 at 03:36AM

19
#1322 - markschwarz / @markschwarz

05/08/2017 at 06:58PM

19
#1323 - Matthew Mongeau / @halogenandtoast

05/11/2017 at 09:10AM

19
#1324 - Hector Davensburg / @hdavensburg

05/13/2017 at 05:31PM

19
#1325 - thomas lo / @wagaiznogoud

05/17/2017 at 10:37PM

19
#1326 - squid / @zerosquid

05/27/2017 at 12:03AM

19
#1327 - だださω / @kdaiki211

06/07/2017 at 03:41PM

19
#1328 - .... / @coffman_r

06/07/2017 at 07:02PM

19
#1329 - Joseph Barratt / @josuf107

06/07/2017 at 07:54PM

19
#1330 - Adam Bozanich / @abozanich

06/08/2017 at 02:12AM

19
#1331 - Azzteroweed / @AzzTeroweed

06/11/2017 at 09:59PM

19
#1332 - James Bernsen / @jamesbernsen

06/12/2017 at 03:54PM

19
#1333 - Olmo Kramer / @olmokramer

06/12/2017 at 06:08PM

19
#1334 - Sebastián Etra / @EtraStyle

06/16/2017 at 05:52AM

19
#1335 - John Smith / @john828495

06/16/2017 at 01:37PM

19
#1336 - John Smith / @johns32768

06/16/2017 at 06:45PM

19
#1337 - squdle / @squdle

06/17/2017 at 01:00PM

19
#1338 - el pollo diablo / @bjagojevich

06/21/2017 at 07:52PM

19
#1339 - grigouille / @grigouille2

06/25/2017 at 08:15PM

19
#1340 - Tomasz Walotek / @uolot

06/27/2017 at 01:14PM

19
#1341 - Kieron Browne / @KieronBrowne1

06/29/2017 at 04:33PM

19
#1342 - Jacob Buete / @JBuete

07/03/2017 at 12:59AM

19
#1343 - Edouard Piette / @EdPiette

07/05/2017 at 08:30AM

19
#1344 - Cody Heimberger / @certifiedloud

07/08/2017 at 05:37AM

19
#1345 - spooqua / @equeaa

07/11/2017 at 08:59PM

19
#1346 - FunkySayu / @FunkySayu

07/17/2017 at 09:12PM

19
#1347 - Joonas Pihlajamaa / @jokkebk

07/19/2017 at 12:11PM

19
#1348 - Dave / @ginsuthumbtack

07/21/2017 at 09:03PM

19
#1349 - Adrian Staniec / @adrianstaniec

08/05/2017 at 09:28AM

19
#1350 - toddkoym / @toddkoym

08/07/2017 at 08:13PM