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

3882 active golfers, 18801 entries

Leaderboard (lowest score wins):
16
#1021 - Hogo / @HogoBlog

06/12/2020 at 01:14AM

16
#1022 - nihilistCookie / @NihilistCookie

06/14/2020 at 12:51PM

16
#1023 - Dane Summers / @dsummersl

07/13/2020 at 12:59PM

16
#1024 - analogpixel / @analogp1xel

07/17/2020 at 02:29AM

16
#1025 - Saurabh / @Saurabh09299

07/21/2020 at 10:50AM

16
#1026 - Coded / @coded_nz

07/28/2020 at 01:15AM

16
#1027 - MathijsHoogland / @MathijsHoogland

07/28/2020 at 06:15AM

16
#1028 - Nicolas Marier / @NicMarier

08/11/2020 at 03:29PM

16
#1029 - Łukasz Kadłubowski / @LAKadlubowski

08/21/2020 at 05:12AM

16
#1030 - Nick Edwards / @edwardsnjd

09/08/2020 at 02:12PM

16
#1031 - nd183 / @nd1832

12/03/2020 at 08:39AM

16
#1032 - Arne Winter / @ArneWinter5

12/06/2020 at 11:39PM

16
#1033 - Jon Liang / @jon__liang

12/17/2020 at 07:05AM

16
#1034 - Fabrizio Perria / @FPerria

12/19/2020 at 09:17AM

16
#1035 - Jung Yeon Park / @park_jungy

12/29/2020 at 05:47PM

16
#1036 - Nicolas Pagny / @NicolasPagny

01/02/2021 at 05:00PM

16
#1037 - gimmie fromage / @FromageGimmie

01/25/2021 at 02:03PM

16
#1038 - m397 / @m39752809546

06/18/2021 at 08:24PM

16
#1039 - vim_maxter / @MaxterVim

07/02/2021 at 07:48AM

16
#1040 - Yondonjamts Ganzorig / @yondonjamts_g

07/28/2021 at 06:16AM

16
#1041 - Sam Unicomb / @samuelunicomb

01/21/2023 at 01:21PM

16
#1042 - Selvaganapathy P / @canabady

03/25/2023 at 02:13PM

16
#1043 - Kaepa69 / @kaepa3

09/08/2023 at 06:01PM

16
#1044 - sosa-daniel / @sosa-daniel

12/29/2023 at 08:11AM

17
#1045 - Cristian Lupașcu / @clupasq

03/30/2016 at 10:08AM

17
#1046 - Kai Yuan / @kentyuan

03/30/2016 at 10:22AM

17
#1047 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 09:48PM

17
#1048 - Patrick Elliott / @thatcsguy

03/30/2016 at 10:48PM

17
#1049 - glepha / @glepha_vim

03/31/2016 at 06:00AM

17
#1050 - Defts = DvToons / @defts

03/31/2016 at 07:15AM