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

3025 active golfers, 14214 entries

Leaderboard (lowest score wins):
28
#2791 - Alex Moorman / @dabearsxander

01/05/2017 at 11:46PM

28
#2792 - racffee / @RacffedeRacffee

01/15/2017 at 05:29PM

28
#2793 - NG / @dueyfinster

02/07/2017 at 04:40PM

28
#2794 - Alec Zhang / @alecjzhang

04/18/2017 at 10:44PM

28
#2795 - raffitz / @raffitz

04/19/2017 at 05:25PM

28
#2796 - Alexander Gryson / @agryson

05/01/2017 at 01:48PM

28
#2797 - A1m / @A1mGG

06/05/2017 at 03:07AM

28
#2798 - The Jamaican Bobsled / @jamaicanbobsled

09/03/2017 at 01:21PM

28
#2799 - Barespamtak / @barespamtak

09/06/2017 at 08:57AM

28
#2800 - Geoff / @RealGeoffErwin

09/26/2017 at 10:15PM

28
#2801 - knut ytterhaug / @knutemann

03/23/2018 at 03:51PM

28
#2802 - Hellon Canella / @helloncanella

04/28/2018 at 04:06AM

28
#2803 - Boda / @Boda47528108

06/04/2018 at 09:51AM

28
#2804 - 无眠的夜狐狸 / @fox_ni

08/14/2018 at 07:16AM

28
#2805 - Tdawg / @Tdawg37048815

09/11/2018 at 08:19PM

28
#2806 - Shashank G Hegde / @shashankghegde

10/07/2018 at 07:09PM

28
#2807 - dogmeat / @dogmeat11

10/23/2018 at 11:48AM

28
#2808 - m472 / @m4729

10/26/2018 at 11:55PM

28
#2809 - Oren Koriat / @KoriatOren

12/06/2018 at 06:19PM

28
#2810 - Dennis Schneider / @Schneiderleiin

12/26/2018 at 04:56PM

28
#2811 - fady zohdy / @fadyzohdy

01/17/2019 at 07:46PM

28
#2812 - exqt / @_exqt_

03/11/2019 at 11:16AM

28
#2813 - john ford / @johnfor65634499

04/17/2019 at 10:23PM

28
#2814 - Michaël Lévesque-Dion / @mlevesquedion

04/26/2019 at 12:09AM

28
#2815 - Swapnil Vinay Dinkar / @swapnildinkar

04/27/2019 at 06:14PM

28
#2816 - りょ / @ryoo141

05/08/2019 at 03:36PM

28
#2817 - Am Jam / @LoneJam

06/07/2019 at 12:55AM

28
#2818 - Vim Golfer / @VimGolfer6

07/06/2019 at 03:24PM

28
#2819 - とうがらし / @XgaraI7

07/23/2019 at 12:40AM

28
#2820 - Hampus HAUFFMAN / @HampusHauffman

07/23/2019 at 08:50AM