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
#1411 - Lydia Cupery / @LCupery

11/14/2018 at 02:53AM

19
#1412 - name / @name65894813

11/14/2018 at 02:51PM

19
#1413 - PJ Frazer / @pj_frazer

11/22/2018 at 02:46AM

19
#1414 - faisal / @faisalhackshah

11/25/2018 at 01:44AM

19
#1415 - Hunter Henrichsen / @hhenrichsen_

11/25/2018 at 11:35PM

19
#1416 - Ruslan / @versicode

11/26/2018 at 07:58PM

19
#1417 - Yggdroot / @Yggdroot

12/12/2018 at 06:14AM

19
#1418 - Julien Harbulot / @julienharbulot

12/27/2018 at 02:10AM

19
#1419 - Josep #Dempeus / @jm_s_p

12/27/2018 at 07:07PM

19
#1420 - Slawek Ligus / @ooz_ie

12/27/2018 at 10:06PM

19
#1421 -  Martijn Engler / @MartijnEngler

12/29/2018 at 09:33PM

19
#1422 - Dany Alexander Caro Saavedra / @DanyAlexanderC7

01/02/2019 at 12:20AM

19
#1423 - Dario Avitabile / @tutticapaci

01/04/2019 at 11:17AM

19
#1424 - John Smith / @JohnSmi14480159

01/09/2019 at 09:13AM

19
#1425 - py / @py97235249

01/17/2019 at 03:32AM

19
#1426 - Sam / @sam_hths

01/26/2019 at 04:23AM

19
#1427 - HuyHung / @hungdh0x5e

01/31/2019 at 02:24AM

19
#1428 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 10:11PM

19
#1429 - Fongxuan / @FongX_L

02/13/2019 at 06:16AM

19
#1430 - Bobby Tables / @BobbyTables12

02/21/2019 at 05:57PM

19
#1431 - algebraic-geometric / @algebraicgeome1

02/24/2019 at 03:54PM

19
#1432 - Groovy / @groovy9

03/06/2019 at 09:15PM

19
#1433 - No Not / @NoNot44894988

03/09/2019 at 12:12PM

19
#1434 - Tarik IRHBOULA / @tarik12009

03/10/2019 at 11:32PM

19
#1435 - cyrt / @cyrt4

03/12/2019 at 11:59AM

19
#1436 - Gabriel / @cimourdain

03/20/2019 at 02:05PM

19
#1437 - mfgujhgh / @mfgujhgh

03/21/2019 at 01:53PM

19
#1438 - Brad Daniels / @JBradDaniels

03/29/2019 at 01:41AM

19
#1439 - Mark Stillwell / @marklee77

03/31/2019 at 10:42PM

19
#1440 - Herman Stavelin / @HsBruker

04/05/2019 at 03:00PM