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

3870 active golfers, 18755 entries

Leaderboard (lowest score wins):
55
#3841 - Andrew Hanlon / @AndrewDHanlon

10/12/2016 at 06:11PM

55
#3842 - FormigTeen / @FormigTeen

06/28/2019 at 06:15PM

55
#3843 - Leo sunil / @tomyail

12/07/2020 at 06:06AM

58
#3844 - Joël Christ / @jjlchrist

10/07/2016 at 01:08PM

59
#3845 - Charles D / @charliechin

09/19/2017 at 11:40PM

59
#3846 - Jordy Koppen / @jordy_koppen

01/25/2020 at 09:15PM

60
#3847 - jobby / @jobby

09/16/2020 at 11:58AM

60
#3848 - dzungtran / @dzungtran89

09/19/2020 at 12:07AM

61
#3849 - hnishi / @hnishi2509

11/10/2019 at 02:39PM

61
#3850 - まえちゃんねる / @maechanneler

08/22/2020 at 01:46PM

63
#3851 - Peter Lacey-Bordeaux / @placeybordeaux

06/21/2018 at 06:55PM

64
#3852 - Saurabh / @saurabhDuzumaki

09/26/2022 at 07:57AM

67
#3853 - David / @Dattlee

09/16/2017 at 03:36PM

69
#3854 - Demur Nodia / @demurnodia

02/15/2018 at 07:45AM

70
#3855 - Mira Kay / @mira_dadadada

05/11/2021 at 05:11AM

71
#3856 - Benjamin Brabant / @Maastiff

09/27/2018 at 09:49PM

80
#3857 - Aaron Dershem / @ajdershem

10/04/2016 at 11:37PM

83
#3858 - Meathead Anonymous / @meatheadanon

08/22/2016 at 08:26PM

84
#3859 - Cameron Voss / @CameronVoss11

02/20/2021 at 06:56PM

85
#3860 - 柳木潇湘 / @vQ8GMOdomggIuM4

06/27/2020 at 01:56PM

86
#3861 - Ryosuke Ozuno / @oz1042

11/24/2023 at 08:08AM

92
#3862 - Gnöme Mâgüs Chörëa / @kentin987654321

05/06/2017 at 08:08PM

97
#3863 - LucaSimplon / @LucaSimplon

11/13/2018 at 03:42PM

110
#3864 - lilicoco / @lilicoco20

05/01/2019 at 06:51PM

110
#3865 - Die_marlone / @m8rl0n

10/02/2020 at 12:55PM

121
#3866 - 勹″み / @gumisugoitaberu

05/04/2019 at 06:35AM

121
#3867 - steve bolo / @steve_bolo

09/30/2019 at 05:45PM

213
#3868 - Idan Korenblum / @idankor

11/08/2019 at 02:08PM

228
#3869 - Jun / @kzh36tt

01/26/2025 at 12:28PM

327
#3870 - 호도르 / @5jhDIioJ2FEnDbB

07/26/2018 at 06:28AM