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

3450 active golfers, 16585 entries

Leaderboard (lowest score wins):
26
#3091 - Noel Qiao / @NoelQiao

11/04/2019 at 09:06PM

26
#3092 - oldandslow / @oldandslow5

11/25/2019 at 06:02PM

26
#3093 - Scott Myц / @ScottMuc

11/26/2019 at 01:59PM

26
#3094 - Gasol Wu / @gasolwu

12/27/2019 at 03:17AM

26
#3095 - John Poon / @shinvalor

12/29/2019 at 08:29PM

26
#3096 - Mikael Brassman / @spoike

03/03/2020 at 04:04PM

26
#3097 - ScalablePrototyping / @ScalableP

03/19/2020 at 10:32PM

26
#3098 - Thomas næsje / @Thomasnsje

03/24/2020 at 10:58PM

26
#3099 - Saransh Barua / @_saranshbarua

03/28/2020 at 07:08PM

26
#3100 - Jason / @roosjason

04/05/2020 at 10:50PM

26
#3101 - seul / @seul15987381

04/19/2020 at 08:32AM

26
#3102 - 优优子 / @YuiTH7

04/28/2020 at 11:25AM

26
#3103 - David Bragmark / @DBragmark

04/28/2020 at 07:47PM

26
#3104 - bladehaze / @bladehaze

05/07/2020 at 06:56PM

26
#3105 - liliia / @lilichagarina

05/27/2020 at 12:02PM

26
#3106 - pheeria / @pheeria

06/21/2020 at 09:07PM

27
#3107 - Tim Green / @iamtimgreen

03/30/2016 at 03:37AM

27
#3108 - Marcel Puyat / @MarcelPuyat

04/25/2016 at 06:58AM

27
#3109 - Lior Rozen / @lixroz

05/02/2016 at 10:14PM

27
#3110 - Mario / @EgliMario

05/03/2016 at 11:01AM

27
#3111 - Woojin Joe / @JoeWooJin

07/06/2016 at 12:28PM

27
#3112 - Matt Wahner / @MattWahner

08/20/2016 at 05:36AM

27
#3113 - William Dyson / @WillDyson3

08/31/2016 at 01:17PM

27
#3114 - Matt Michnal / @mgm702

09/12/2016 at 10:16PM

27
#3115 - Allen Gooch / @mojochao

09/18/2016 at 09:25PM

27
#3116 - Clalani / @clalania

10/13/2016 at 05:27PM

27
#3117 - Dušan Baran / @dudoslaf

10/25/2016 at 07:18PM

27
#3118 - rainer b / @roinnerr

11/20/2016 at 04:43PM

27
#3119 - Maciej Mionskowski / @maciekmm_

02/22/2017 at 11:22AM

27
#3120 - Shreyas / @shreyasjag

03/02/2017 at 08:56PM