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):
25
#3361 - Jason Birchall / @jsonBirchall

09/23/2019 at 08:35AM

25
#3362 - Miko / @_m_ik_o_

09/24/2019 at 06:36PM

25
#3363 - Josefina Alconada / @jochiAlconada

10/03/2019 at 10:49AM

25
#3364 - Zviad Mgaloblishvili / @ZMgaloblishvili

10/10/2019 at 08:36PM

25
#3365 - Vladimir Leskov / @vladimirlesk

10/12/2019 at 11:45AM

25
#3366 - Luat Hoang / @luat1203

10/22/2019 at 10:50AM

25
#3367 - Harsha Laxman / @harshlax

11/17/2019 at 11:59PM

25
#3368 - Joren Van Hee / @jorenvanhee

11/22/2019 at 02:51PM

25
#3369 - Aaron Harris / @TheJoyOfPython

12/02/2019 at 01:46PM

25
#3370 - heyyou / @hey3you3

12/15/2019 at 11:06PM

25
#3371 - Laura Fiuza / @thelaurafiuza

12/20/2019 at 03:56AM

25
#3372 - Jon Crowe / @joncrowe

01/27/2020 at 02:49PM

25
#3373 - Lukas Schattenhofer / @Schadonis

02/02/2020 at 01:23PM

25
#3374 - Noah / @NoahRosenzweig

02/12/2020 at 11:30PM

25
#3375 - Franckdemda / @Franckdemda

02/16/2020 at 01:30PM

25
#3376 - Ben Griffiths / @beng

02/23/2020 at 10:33PM

25
#3377 - ser / @ser_robo

02/29/2020 at 07:57AM

25
#3378 - Pablo Villalba / @micho

04/04/2020 at 06:57PM

25
#3379 - Digvijay Patankar / @dbpatankar

04/18/2020 at 09:31PM

25
#3380 - Michael V. / @mvivirito

07/07/2020 at 03:10PM

25
#3381 - Trevor Hulsman / @trevorhulsman

08/02/2020 at 07:30PM

25
#3382 - vimgolfer98746521 / @vimgolfer987461

09/06/2020 at 10:30AM

25
#3383 - just here to scroll. / @idontknow0001

10/03/2020 at 01:33PM

25
#3384 - Bharath / @Bharath15952517

12/12/2020 at 06:54PM

25
#3385 - kijete3127 / @kijete3127

12/13/2020 at 01:48PM

25
#3386 - Nitesh Rijhwani / @NitzRijhwani

01/05/2021 at 03:00PM

25
#3387 - Ronen Lahat / @Ronenl

01/21/2021 at 06:41PM

25
#3388 - Garlic Bread / @GarlicB30592807

03/05/2023 at 05:39PM

25
#3389 - Haruaki Tomida / @haruyan-hopemucci

12/06/2024 at 08:14AM

26
#3390 - Joe McKenney / @mckenney00

04/05/2016 at 04:34AM