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

2888 active golfers, 13395 entries

Leaderboard (lowest score wins):
19
#1381 - Toshi Noguchi / @toshiherooo

08/01/2018 at 09:20PM

19
#1382 - Foo Bar / @FooBarely

08/02/2018 at 10:09PM

19
#1383 - Frank Korf / @OMGFrank

08/14/2018 at 04:42PM

19
#1384 - Dr. Rev. J. "Paranoid Android" Kirchartz / @JKirchartz

08/19/2018 at 06:02PM

19
#1385 - Cam Smith / @Comradesmith

08/21/2018 at 10:56AM

19
#1386 - Christopher / @Rephiscorth

08/29/2018 at 03:53PM

19
#1387 - Alexander Covington / @ACov96

08/30/2018 at 03:28PM

19
#1388 - Weston Neal / @wtneal

08/31/2018 at 07:11PM

19
#1389 - Nico Kreiling / @NicoKreiling

09/01/2018 at 04:29PM

19
#1390 - Fellow Millennium / @Fellow2000

09/03/2018 at 10:51AM

19
#1391 - daniel / @daniel31464605

09/11/2018 at 07:23PM

19
#1392 - Julià Mestieri / @julimestieri

09/12/2018 at 02:44PM

19
#1393 - h3x3sworld / @h3x3sworld

09/17/2018 at 02:18PM

19
#1394 - Not real / @Notreal70353016

09/21/2018 at 09:03PM

19
#1395 - vimgolf / @myspare307

09/25/2018 at 05:34AM

19
#1396 - Clmi / @c_decaf

09/30/2018 at 07:45AM

19
#1397 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 02:01AM

19
#1398 - Roger Bongers / @RogerBongers

10/02/2018 at 03:20AM

19
#1399 - Schneider / @tweetschneider

10/02/2018 at 06:09PM

19
#1400 - tskepla / @tskepla

10/17/2018 at 06:21AM

19
#1401 - 王有铭 / @coder_ming

10/21/2018 at 06:00AM

19
#1402 - GUL / @GUL_THE_TWITTO

10/24/2018 at 07:08PM

19
#1403 - Картопля / @69MxdbCh4jtIZSx

10/25/2018 at 09:36PM

19
#1404 - Finn Francis / @FinnFrancis

10/26/2018 at 07:47PM

19
#1405 - nenuon / @nenuon61

10/28/2018 at 11:29AM

19
#1406 - Michael Lemur / @mlemur123

11/06/2018 at 07:08PM

19
#1407 - ゴリラ@技術書典7 き47D / @gorilla0513

11/08/2018 at 12:27AM

19
#1408 - justed / @justevild

11/13/2018 at 05:55PM

19
#1409 - Lydia Cupery / @LCupery

11/14/2018 at 02:53AM

19
#1410 - name / @name65894813

11/14/2018 at 02:51PM