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):
24
#3241 - ____ / @davidmuzzy

04/08/2019 at 09:23AM

24
#3242 - Andrius Bentkus / @andriusbentkus

04/11/2019 at 09:02AM

24
#3243 - Lewis Guignard / @LewisGuignard

04/15/2019 at 04:35AM

24
#3244 - パコ タコ (Nassty) / @elnassto

04/22/2019 at 03:26PM

24
#3245 - Mick van der Vegt / @mickvdv

05/17/2019 at 02:13PM

24
#3246 - Leiser Fernández / @leiserfg

05/17/2019 at 03:20PM

24
#3247 - JonasS / @jonas42s

05/30/2019 at 09:37AM

24
#3248 - a60068 / @a60068

06/05/2019 at 01:22PM

24
#3249 - g̵̨̛̺̝̮̋͆̅͝r̶̦͗̐̓̉a̵͉͋̎c̵̺͉̉͝e̴͙̘͎͚̹̳͛̀͂͆̂ / @___grce

06/13/2019 at 01:57AM

24
#3250 - ylv / @ylv_io

07/13/2019 at 11:11AM

24
#3251 - Bob Ren / @bobrenjc93

07/27/2019 at 09:19PM

24
#3252 - averageRandomPerson / @averageRandomP1

08/22/2019 at 11:40PM

24
#3253 - Hans Lidiki / @HLidiki

09/07/2019 at 05:20PM

24
#3254 - Ioannis Cherouvim / @cherouvim

09/11/2019 at 06:36PM

24
#3255 - Thomas Edlich / @grumpybavarian

09/27/2019 at 09:10PM

24
#3256 - siledUp / @siledev1

10/02/2019 at 10:10PM

24
#3257 - Michael Parrott / @MikeParrott94

10/06/2019 at 02:34AM

24
#3258 - Keith Klassen / @Collegekid491

11/02/2019 at 09:47PM

24
#3259 - Max Coplan / @mchcopl

11/03/2019 at 11:17PM

24
#3260 - Leandro Lourenci / @lourenci

11/27/2019 at 10:44PM

24
#3261 - ちくあな / @navcw

12/06/2019 at 03:27PM

24
#3262 - Moritz Biersack / @TheAppPeak

12/19/2019 at 09:16AM

24
#3263 - Samuello / @Samuell45812609

12/30/2019 at 02:09AM

24
#3264 - Bitt Faulk / @bittfaulk

02/18/2020 at 09:39PM

24
#3265 - Jakub / @Jaqbek

02/24/2020 at 03:29PM

24
#3266 - 廖彥智 / @JeffYenchih

03/03/2020 at 10:20AM

24
#3267 - Harsh Raj / @harshraj22aug

03/06/2020 at 06:52AM

24
#3268 - Chris Fowler / @ChrisFowler3

04/12/2020 at 08:08AM

24
#3269 - volandkit / @volandkit

04/17/2020 at 10:45PM

24
#3270 - Francsico / @Francsi31459977

04/18/2020 at 12:41PM