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

2837 active golfers, 13051 entries

Leaderboard (lowest score wins):
22
#2071 - dtjong / @dtjong2

06/07/2019 at 06:41PM

22
#2072 - alaric27 / @alaric273

07/11/2019 at 08:44AM

22
#2073 - Sean Sullivan / @_seanyneutron

07/11/2019 at 06:26PM

22
#2074 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 02:24PM

22
#2075 - Isaak Meier / @IsaakMeier

08/19/2019 at 07:05PM

23
#2076 - Samuel Walladge / @srwalladge

03/30/2016 at 03:59AM

23
#2077 - AleksandarTrifunovic / @akstrfn

03/30/2016 at 08:51AM

23
#2078 - Kevin Ilphrin Pellet / @Kilphrin

03/30/2016 at 09:14PM

23
#2079 - Niru Maheswaranathan / @niru_m

04/03/2016 at 10:19PM

23
#2080 - Karolis / @k_lesevicius

04/10/2016 at 01:57PM

23
#2081 - Nathan Schulte / @nmschulte

04/11/2016 at 07:55PM

23
#2082 - Juampy NR / @juampynr

04/14/2016 at 09:32AM

23
#2083 - Tj / @yrddy

04/19/2016 at 10:41AM

23
#2084 - payoub / @pay0ub

04/20/2016 at 12:30AM

23
#2085 - Gabriel Florit / @gabrielflorit

04/20/2016 at 04:24AM

23
#2086 - Feras / @faldah

04/24/2016 at 12:58AM

23
#2087 - Kevin R / @TheKevinthDay

04/25/2016 at 08:49PM

23
#2088 - soccerprotip - blog / @soccerprotip

04/30/2016 at 09:52AM

23
#2089 - Sebastián Mancilla / @smancill_m

05/05/2016 at 12:56AM

23
#2090 - mike / @bal6219

05/05/2016 at 08:54AM

23
#2091 - Tom / @CronutFacts

05/07/2016 at 01:27AM

23
#2092 - Subhash Shah / @subhashshah

05/10/2016 at 04:58AM

23
#2093 - imlinder / @imLinder

05/11/2016 at 11:22AM

23
#2094 - Zhao Bin / @ZhaoBin2

06/07/2016 at 03:48PM

23
#2095 - Alec Newman / @alecnwmn904

06/07/2016 at 09:07PM

23
#2096 - EVGENIY SEMENOV / @r0cketboy

06/16/2016 at 01:20PM

23
#2097 - Leavim / @LeavimTain

06/19/2016 at 03:14PM

23
#2098 - Albertux / @_Albertux

06/20/2016 at 07:19AM

23
#2099 - Vaisian / @Vaisian

07/02/2016 at 08:02PM

23
#2100 - Samir Sadek / @netsamir

07/10/2016 at 07:02AM