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

2705 active golfers, 12428 entries

Leaderboard (lowest score wins):
23
#2221 - Halle Knast / @halleknast

03/10/2019 at 09:55PM

23
#2222 - Isaak Meier / @IsaakMeier

03/26/2019 at 03:11PM

23
#2223 - Timothy Bryan / @tim_bryan

04/10/2019 at 02:42PM

23
#2224 - Iván Burgos / @Navo_Tivetano

04/11/2019 at 10:59PM

23
#2225 - お薬手帳 / @iW4Wz6PpCiqyGqH

04/16/2019 at 01:06AM

23
#2226 - Peter Dolan / @PeterDo76228680

04/25/2019 at 07:53PM

23
#2227 - _ / @bastla

05/02/2019 at 12:23PM

23
#2228 - Phoon / @justflashhim

05/10/2019 at 02:06PM

23
#2229 - Dheerendra Rathor / @dheerendra_sr

05/15/2019 at 03:33PM

23
#2230 - alexandrasou / @alexandrasou2

05/22/2019 at 07:05AM

23
#2231 - Jason Liang / @bummerjacket

05/26/2019 at 11:52PM

23
#2232 - Jacob McCrumb / @MccrumbJacob

05/30/2019 at 09:10PM

23
#2233 - Kevin V / @kvelcich

06/03/2019 at 11:41PM

23
#2234 - Aleksa Zdravkovic / @zdravce98

06/04/2019 at 06:19PM

23
#2235 - notabot / @notabot84394972

06/04/2019 at 11:23PM

23
#2236 - Cookie4D / @Cookie4D1

06/06/2019 at 08:54PM

23
#2237 - うおお / @uoo38

06/07/2019 at 01:21AM

23
#2238 - Shyam Padia / @thegeektherapy

06/07/2019 at 11:26PM

23
#2239 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 12:50PM

23
#2240 - 𝕛𝕓𝕣𝕠𝕨𝕟 / @Roguelazer

06/12/2019 at 11:32PM

24
#2241 - Josh Hartigan / @joshhartigan

03/30/2016 at 05:52AM

24
#2242 - Diary / @antiprolixity

03/30/2016 at 05:53AM

24
#2243 - David Resnick / @david_resnick

04/03/2016 at 10:03AM

24
#2244 - Restroom Sounds / @RestroomSounds

04/06/2016 at 03:48AM

24
#2245 - Aaron Young / @Geekdude_360

04/14/2016 at 05:40PM

24
#2246 - Kir Shatrov / @kirshatrov

04/15/2016 at 12:03PM

24
#2247 - Daniel Pham / @dany_pham

04/17/2016 at 06:39PM

24
#2248 - Evan Coleman / @edc1591

04/19/2016 at 10:53PM

24
#2249 - mojito / @simplihot

04/20/2016 at 09:50AM

24
#2250 - de Chezelles Benoit / @BenoitBew78

04/24/2016 at 02:46PM