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
#3271 - sydman / @sydman11

04/30/2020 at 06:27AM

24
#3272 - dotvimrc / @dotvimrc1

05/03/2020 at 03:55PM

24
#3273 - whale / @Hari84444713

05/04/2020 at 01:46AM

24
#3274 - Alexandre Devienne / @alexdevienn

05/09/2020 at 12:37PM

24
#3275 - jhoanfalcon / @jhoanfalcon1

05/10/2020 at 05:23PM

24
#3276 - Derrick Anderson - Solstice / @DerrickSolstice

05/14/2020 at 10:06PM

24
#3277 - Леонид / @miiasond

05/25/2020 at 07:04AM

24
#3278 - sunny / @pooisonner

05/29/2020 at 04:27AM

24
#3279 - Georg Kaaserer / @climbim

06/14/2020 at 10:50PM

24
#3280 - yuval jacoby / @yuval_jacoby

07/11/2020 at 09:14PM

24
#3281 - knoebber / @knoebber1

08/24/2020 at 05:03PM

24
#3282 - Yāsky / @Yaasky

09/02/2020 at 07:14PM

24
#3283 - The Valencian Dev / @thevalenciandev

10/11/2020 at 02:14PM

24
#3284 - Muradil / @MuradilUdun

10/21/2020 at 02:21AM

24
#3285 - Jakub Wagner / @Jakub1019

10/23/2020 at 03:13PM

24
#3286 - vimgolf throwaway / @vimgolfthrowaw3

12/12/2020 at 07:22AM

24
#3287 - david / @david52856086

12/15/2020 at 10:35PM

24
#3288 - Murad / @m_spitfire

12/25/2020 at 04:33PM

24
#3289 - sontek / @sontekliu

01/05/2021 at 05:49AM

24
#3290 - JingChen / @ilovejingle

01/09/2021 at 07:47AM

24
#3291 - Martin LOUAZEL / @Zbrahark

02/18/2021 at 08:19AM

24
#3292 - Linus Bergman / @LinusBergman8

04/30/2021 at 07:22AM

24
#3293 - Josh Braun / @bbraunj

05/12/2021 at 04:06AM

24
#3294 - Wizard_KumaChan / @Wizard_KumaChan

11/05/2021 at 03:26AM

24
#3295 - 윤승후 / @yunseunghu7

03/06/2022 at 02:16AM

24
#3296 - Nicolas Pinto / @nicolaspinto

10/12/2022 at 11:25PM

24
#3297 - SRINIVASU SALADI / @SRINIVASUS22587

02/05/2025 at 10:51PM

24
#3298 - Thibault Courtois / @ThibaultCourtois

07/18/2025 at 12:28PM

25
#3299 - jb M / @Jiboo_hey

04/21/2016 at 03:04PM

25
#3300 - alekseiKO / @alekseiKO

04/26/2016 at 04:21PM