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

2883 active golfers, 13373 entries

Leaderboard (lowest score wins):
14
#91 - hor1ace / @hor3ace

09/07/2016 at 04:04PM

14
#92 - ✘A / @Lolicon_H

09/11/2016 at 05:14AM

14
#93 - BLACKODE / @tweetblackode

09/17/2016 at 12:48AM

14
#94 - Michał Kordas / @michal_kordas

09/18/2016 at 10:08AM

14
#95 - Allen57 / @ludo57310

09/18/2016 at 01:56PM

14
#96 - Sahar Rachamim (Kishu) / @SRachamim

09/19/2016 at 07:52PM

14
#97 - Nico / @_Nico_Caro

09/23/2016 at 05:59PM

14
#98 - Jeremiah Gibson / @jeremiah4691

09/28/2016 at 10:09PM

14
#99 - manbogot / @gmanbor

10/01/2016 at 08:43AM

14
#100 - Nikos Kwlos / @Kwlos_Calling

10/01/2016 at 01:55PM

14
#101 - Chris Hampson / @ChrisHampsonGTD

10/03/2016 at 07:50AM

14
#102 - Test User / @TestUserIgnore

10/05/2016 at 09:14PM

14
#103 - david quarles / @davidequarles

10/06/2016 at 05:38AM

14
#104 - Whossname / @BuzzaTyson

10/06/2016 at 02:38PM

14
#105 - David Fonseca / @ddfonseca6

10/06/2016 at 05:21PM

14
#106 - 戴杰 / @gundamwingsdj

10/06/2016 at 05:57PM

14
#107 - trx / @trxdbg

10/08/2016 at 05:01AM

14
#108 - A Random Cider / @jtxyz_

10/09/2016 at 12:30PM

14
#109 - Flash Gordon / @flashgo94065088

10/14/2016 at 01:08PM

14
#110 - Brian Mego / @Major251

10/17/2016 at 02:35AM

14
#111 - Shashwat Raghuvanshi / @Shashwat_sr123

10/17/2016 at 02:30PM

14
#112 - Enrico Roncaglia / @Ronca_cp

10/17/2016 at 03:16PM

14
#113 - Emanuele Franzoni / @EFranzoni89

10/17/2016 at 03:57PM

14
#114 - Karl Lundquist / @karllundquist

10/18/2016 at 09:23PM

14
#115 - Piotr Cyrankiewicz / @jedihenryk

10/21/2016 at 11:54PM

14
#116 - 子皓翁 / @geniusgordon

10/25/2016 at 07:36AM

14
#117 - F B / @felixbigg

10/27/2016 at 11:47AM

14
#118 - ben kavanagh / @bkava

10/27/2016 at 07:30PM

14
#119 - Fluke / @co_NP_complete

10/28/2016 at 12:32AM

14
#120 - Hachez Floran / @FloranHachez

10/29/2016 at 03:13PM