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

3025 active golfers, 14214 entries

Leaderboard (lowest score wins):
19
#1231 - Ernesto Nakamura / @ernestonakamura

05/07/2016 at 03:16AM

19
#1232 - matt / @ziegs

05/07/2016 at 09:05PM

19
#1233 - Sergio Benitez / @Sergio965

05/09/2016 at 05:17AM

19
#1234 - Vivek Bose / @Strangelich

05/11/2016 at 04:04PM

19
#1235 - Ben Hill / @KaizenSoze70

05/11/2016 at 05:31PM

19
#1236 - Kyle Kurtenbach / @kurtenbachkyle

05/11/2016 at 06:29PM

19
#1237 - anoniem / @asq123sadf

05/11/2016 at 11:14PM

19
#1238 - kalq / @KamilKraszewski

05/12/2016 at 03:37AM

19
#1239 - 朱国栋 / @GuodongZhu

05/17/2016 at 02:42AM

19
#1240 - Dom Williams / @DomWilliams0

05/24/2016 at 06:01PM

19
#1241 - some call me mattp / @mattpep

05/27/2016 at 01:19PM

19
#1242 - Kenny Lau / @kkkennnny

06/01/2016 at 07:47AM

19
#1243 - James Potter / @JJPotterkowski

06/01/2016 at 02:26PM

19
#1244 - Elliott Beach / @718282Beach

06/03/2016 at 02:46AM

19
#1245 - Marshall Croes / @marshallcroes

06/07/2016 at 10:24PM

19
#1246 - el R / @el_r

06/10/2016 at 09:40AM

19
#1247 - Mel / @Sprocklem

06/12/2016 at 08:42PM

19
#1248 - VG / @DaEmpo

06/12/2016 at 09:30PM

19
#1249 - Robert Basic / @robertbasic

06/14/2016 at 04:30AM

19
#1250 - Robert Perce / @robertperce

06/14/2016 at 04:22PM

19
#1251 - Jacob Niehus / @wilywampa

06/18/2016 at 07:02PM

19
#1252 - Timothy Caleb Nordlo / @tnordloh

06/22/2016 at 04:34AM

19
#1253 - 午後の紅茶 / @kotarou777775

06/24/2016 at 02:50PM

19
#1254 - Avery Wilkening / @awilkening

06/24/2016 at 02:51PM

19
#1255 - Daniel Tong / @danieltongaus

06/28/2016 at 08:57AM

19
#1256 - Kento Kaneko / @kentokaneko

07/06/2016 at 04:50PM

19
#1257 - Aki Morooka / @Aki12117528

07/12/2016 at 03:38PM

19
#1258 - Dasd Prli / @DasdPrli

07/14/2016 at 09:33PM

19
#1259 - Vatyx / @Vatyx

07/16/2016 at 01:16AM

19
#1260 - Angelux México / @XAngeluX

07/18/2016 at 03:01AM