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

3064 active golfers, 14411 entries

Leaderboard (lowest score wins):
22
#2071 - Pavol Slamka / @Archipedes

07/13/2016 at 01:39PM

22
#2072 - Chris Gardner / @t00manybananas

07/14/2016 at 06:54PM

22
#2073 - Nat / @ntzm_

07/15/2016 at 11:03AM

22
#2074 - Ygor Bruxel / @ygorbruxel

07/16/2016 at 10:52PM

22
#2075 - Matt Clement / @zetaspartan2552

07/30/2016 at 11:49PM

22
#2076 - Tuấnn / @tuantv_nd

08/02/2016 at 03:03PM

22
#2077 - Luke Was / @acatalepteron

08/13/2016 at 02:23AM

22
#2078 - Đinh Quang Trung / @trungdq88

08/20/2016 at 05:33AM

22
#2079 - Maik Teske / @maikteske

08/23/2016 at 02:33PM

22
#2080 - Jason Melton / @ushimitsudoki

08/26/2016 at 09:54AM

22
#2081 - ymmtmdk / @ymmtmdk

08/30/2016 at 01:08AM

22
#2082 - Eric Nielsen / @ericbn8

09/03/2016 at 01:24AM

22
#2083 - Christophe Perrotin / @ChrisPerSurTwit

09/24/2016 at 04:12PM

22
#2084 - Chance Gibbs / @CautiousCarlton

10/10/2016 at 08:12PM

22
#2085 - aoeuhtnahtnauohtnu / @htnoeieioeioeui

10/20/2016 at 10:55AM

22
#2086 - Aaron Ogan / @aaronogan

10/21/2016 at 01:24PM

22
#2087 - Toscha / @_Toscha_

11/13/2016 at 10:36PM

22
#2088 - Корнев Руслан / @woto7

12/04/2016 at 03:25PM

22
#2089 - MS / @mislusnys

12/12/2016 at 04:20PM

22
#2090 - Ryugo Abe / @Ryu8179

12/13/2016 at 02:34AM

22
#2091 - golfing cobra / @golfingkobra

12/30/2016 at 10:16AM

22
#2092 - Akira Sasaki / @hikomimo

01/04/2017 at 11:19AM

22
#2093 - Nana Adane / @NanaOAdane

01/06/2017 at 05:34PM

22
#2094 - J. Cosa / @esoesotracosa

01/16/2017 at 11:06AM

22
#2095 - Jon E. Eguiluz / @viroide

01/18/2017 at 05:26PM

22
#2096 - Vojtech Cvrcek / @CvrcekCvrcekv

01/27/2017 at 02:33PM

22
#2097 - Moussinho / @mouss4243

02/04/2017 at 11:50PM

22
#2098 - Józef M... / @joziom

02/15/2017 at 10:14PM

22
#2099 - namongk / @namongk

02/17/2017 at 04:06PM

22
#2100 - Lubinator / @Lubinator2

02/20/2017 at 04:14PM