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

3880 active golfers, 18798 entries

Leaderboard (lowest score wins):
17
#1321 - Edgar Domingues / @edgar_domingues

07/07/2020 at 01:27PM

17
#1322 - Gergely Risko / @errge

07/28/2020 at 09:53PM

17
#1323 - Kazuki / @algo__n

08/10/2020 at 10:33AM

17
#1324 - Vinay Sharma / @VinaySh63956554

08/11/2020 at 07:06AM

17
#1325 - yhgolf / @yhgolf1

09/05/2020 at 03:48PM

17
#1326 - Mike Walker / @mikewalk

09/19/2020 at 11:13PM

17
#1327 - Alice / @Alice92541388

09/28/2020 at 06:35PM

17
#1328 - Vildu / @Vildu3

09/30/2020 at 04:34PM

17
#1329 - mstronam / @mstronam

10/01/2020 at 09:38AM

17
#1330 - Ravi S Sinha / @ambidextrousTx

10/06/2020 at 12:26AM

17
#1331 - Hossein Yousefi 💙 / @u_hossein

11/03/2020 at 03:18PM

17
#1332 - Zack Freedman / @freedman_zack

11/07/2020 at 04:32AM

17
#1333 - Arryue / @Arryue2

11/07/2020 at 05:02PM

17
#1334 - Jan Lukány / @Lukanyj

11/17/2020 at 10:02PM

17
#1335 - Alex Watson / @AlexDewiWatson

12/01/2020 at 08:44PM

17
#1336 - Neverlandrunner / @neverlandrunner

12/05/2020 at 10:25AM

17
#1337 - John Doe / @JohnDoe75830353

12/21/2020 at 08:11PM

17
#1338 - soppeldynga / @soppeldynga

01/09/2021 at 10:16PM

17
#1339 - Faizan Ansari / @faizan_157

01/31/2021 at 01:22PM

17
#1340 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 02:21AM

17
#1341 - z00master / @z00master

08/01/2022 at 05:43PM

17
#1342 - low huron / @huron_low

01/11/2023 at 05:49AM

17
#1343 - 咸糖🎯 / @GIA917229015

07/09/2023 at 12:35PM

17
#1344 - Sébastien Matharel / @s_cognac

10/27/2023 at 04:22PM

18
#1345 - Antonia Siu / @not_antonia

04/04/2016 at 01:40AM

18
#1346 - Eric Roberts / @notabmovieactor

04/13/2016 at 06:05PM

18
#1347 - Lluís Mª Bosch / @holalluis

04/14/2016 at 11:07PM

18
#1348 - Daniel Latzer / @tournqat

05/02/2016 at 03:59PM

18
#1349 - Garph0 / @garph0

06/17/2016 at 01:26PM

18
#1350 - Stephanie Kortig / @stephkortig

06/24/2016 at 03:47PM