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

3497 active golfers, 16843 entries

Leaderboard (lowest score wins):
20
#2071 - Seve / @__Seve__

04/08/2020 at 09:53AM

20
#2072 - abdellah hariti / @_hariti

04/26/2020 at 07:19PM

20
#2073 - Nicolas Daval / @ndaval

04/30/2020 at 12:34PM

20
#2074 - Christophe Kafrouni / @KafrouniChris

04/30/2020 at 02:43PM

20
#2075 - Quentin Leroy / @qnleroy

05/07/2020 at 08:00PM

20
#2076 - bigsystem / @bigsystem2

05/28/2020 at 02:38PM

20
#2077 - Yannick / @Yannick88147038

05/31/2020 at 08:20PM

20
#2078 - Patrick Weigert / @PatrickWeigert

06/01/2020 at 01:02AM

20
#2079 - nbspAD / @AdNbsp

06/01/2020 at 03:45PM

20
#2080 - Kieran / @Kieran39992130

06/02/2020 at 05:38AM

20
#2081 - Imer Chavez / @imer_chavez

06/30/2020 at 12:37AM

20
#2082 - Daniel Habib / @danielhvs

07/20/2020 at 03:54AM

20
#2083 - Thiago Becker / @beckert

08/03/2020 at 07:57PM

21
#2084 - Dmitriy Olshevskiy / @olshevskiy_dv

03/30/2016 at 04:46PM

21
#2085 - Law29 / @ItalieLaw29

04/03/2016 at 06:39PM

21
#2086 - Félix Leblanc / @felix_leblanc13

04/05/2016 at 04:35PM

21
#2087 - neptunepink / @neptunepunk

04/06/2016 at 08:11PM

21
#2088 - WhatDo / @WhatDo10

04/07/2016 at 09:30AM

21
#2089 - Mike D / @delsauce

04/07/2016 at 04:30PM

21
#2090 - Oliver Christ / @0liverChrist

04/14/2016 at 08:19PM

21
#2091 - Sasi Kiran reddy / @vls1989kiran

04/15/2016 at 12:32AM

21
#2092 - ELINGUI Pascal Uriel / @elinguiuriel

04/20/2016 at 01:35PM

21
#2093 - hammboning / @_PuttPirates_

04/20/2016 at 03:22PM

21
#2094 - Zihan Zheng / @zhengzihan1996

04/22/2016 at 05:07PM

21
#2095 - Nicholas Marasco / @Zero_Toast

04/27/2016 at 07:30PM

21
#2096 - Sergio L. Montolio / @sergiomontolio

05/04/2016 at 07:10PM

21
#2097 - Vikhyat Korrapati / @vikhyatk

05/07/2016 at 11:42AM

21
#2098 - John Doe Sr. / @johndoe67890543

05/08/2016 at 11:40PM

21
#2099 - george iv / @geowa4

05/13/2016 at 01:29PM

21
#2100 - Christian Bay / @the_greenbourne

05/18/2016 at 11:04AM