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

2758 active golfers, 12667 entries

Leaderboard (lowest score wins):
20
#1561 - Austin Gundry / @a_gundry

03/21/2018 at 04:36PM

20
#1562 - Михаил Фуфин / @MishaFufin

03/31/2018 at 06:14PM

20
#1563 - ran stud / @randstud9000

04/05/2018 at 06:51PM

20
#1564 - Sergio Gil / @porras

04/06/2018 at 07:03PM

20
#1565 - Daniel Hanson / @dghanson1

04/15/2018 at 10:20PM

20
#1566 - wancharle / @wancharle

04/20/2018 at 02:23AM

20
#1567 - jet / @jameslintaylor

04/20/2018 at 03:38AM

20
#1568 - Blue Thunder Somogyi / @bsomogyi

04/20/2018 at 11:13PM

20
#1569 - Vojtěch Pejša / @7Vojta7

04/24/2018 at 09:18AM

20
#1570 - Alex Budilovsky / @alexbudy

05/01/2018 at 04:43AM

20
#1571 - Endre Galaczi / @galacziendre

05/02/2018 at 11:14AM

20
#1572 - Francisco Giordano / @frangio_

05/03/2018 at 04:17AM

20
#1573 - Vince / @saviienn

05/03/2018 at 11:31AM

20
#1574 - Gatlee / @gatmek

05/06/2018 at 01:53PM

20
#1575 - Elite Hacker of the Light / @L3E7

05/08/2018 at 06:30AM

20
#1576 - Just...That / @I_am_JustThat

05/10/2018 at 12:42PM

20
#1577 - Adomas Jatužis / @adomixaszvers

05/13/2018 at 11:02AM

20
#1578 - Alex Wood / @alexlawriewood

05/22/2018 at 10:15AM

20
#1579 - CesipXynic / @CesipX

05/22/2018 at 05:12PM

20
#1580 - Ben Williams / @benw

05/23/2018 at 07:45PM

20
#1581 - Tom Ient / @tom_ient

05/24/2018 at 05:59PM

20
#1582 - nSinus-R / @nSinusR

05/29/2018 at 02:53PM

20
#1583 - Rida Al Barazi / @rida

06/01/2018 at 07:09PM

20
#1584 - Simon Ticks / @SimonTicks

06/10/2018 at 02:05PM

20
#1585 - deeplow / @deeplow1337

06/15/2018 at 06:58PM

20
#1586 - testasddae / @testasddae

06/17/2018 at 03:02PM

20
#1587 - Andrew Tongen / @atongen

06/21/2018 at 08:22PM

20
#1588 - rhys ormond / @rhysormond

07/04/2018 at 07:17AM

20
#1589 - Alfredo Ribeiro / @aribeiro

07/05/2018 at 02:09PM

20
#1590 - xarfg / @xarphg

07/05/2018 at 02:53PM