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

3898 active golfers, 18889 entries

Leaderboard (lowest score wins):
19
#2011 - — / @Cenarius

12/07/2020 at 02:07AM

19
#2012 - Patrick Endres / @adept_nav

12/08/2020 at 12:48AM

19
#2013 - kse / @kse92733183

12/11/2020 at 07:46PM

19
#2014 - nlfrocks / @nlfrocks

12/20/2020 at 06:28PM

19
#2015 - Niko Steinhoff / @niko_steinhoff

12/23/2020 at 07:00AM

19
#2016 - neonunux / @neonunux

12/23/2020 at 05:55PM

19
#2017 - knobbelkesvlaai / @knobbelkesvlaai

01/13/2021 at 09:32AM

19
#2018 - mhb / @mhbvim

01/15/2021 at 10:26AM

19
#2019 - zapakh / @zapakh

01/21/2021 at 02:04AM

19
#2020 - Gunter Kluge / @KlugeGunter

01/26/2021 at 01:53PM

19
#2021 - webx007 / @webx_007

06/17/2021 at 09:59PM

19
#2022 - Jean George / @JeanGeo20504212

09/07/2021 at 06:34AM

19
#2023 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:55AM

19
#2024 - タケ / @Take3832

04/18/2022 at 02:10PM

19
#2025 - Alex / @AlexanderHeatl2

05/22/2022 at 04:34PM

19
#2026 - Austin Willliams / @GuitarMusash616

09/23/2022 at 03:43AM

19
#2027 - 우정민 / @jeongmin2021

10/01/2022 at 08:32AM

19
#2028 - Jakob Föger / @drvolcano86

02/16/2023 at 05:55PM

19
#2029 - vladanscy / @vladanscy

02/20/2023 at 07:45PM

19
#2030 - Fabio Ortega / @_Ortega

04/09/2023 at 05:07AM

19
#2031 - Thales / @ThalesII

06/24/2023 at 01:15AM

19
#2032 - asirago / @asiragoo

12/11/2023 at 10:15AM

19
#2033 - b4rt0l4 / @b4rt0l4

12/28/2023 at 01:10AM

19
#2034 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 08:05AM

19
#2035 - UrbanNinja1010 / @UrbanNinja1010

04/04/2025 at 03:16PM

19
#2036 - zhs / @ZH-S

04/24/2025 at 04:07AM

19
#2037 - Brian Rhees / @brhees

04/24/2025 at 06:53PM

19
#2038 - Yukawa / @yushe629

06/21/2025 at 01:33AM

20
#2039 - Harry Venables / @HarryVenables

04/07/2016 at 11:10AM

20
#2040 - Max Sherman / @johnislarry

04/16/2016 at 10:02PM