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

2946 active golfers, 13705 entries

Leaderboard (lowest score wins):
21
#1921 - Developer Desmond / @DeveloperDez

09/12/2018 at 03:30AM

21
#1922 - gsvba / @gsvba

09/18/2018 at 10:13PM

21
#1923 - yachi / @yaachi

09/19/2018 at 07:14AM

21
#1924 - Mort Rainey / @arch_midnight

09/22/2018 at 07:06PM

21
#1925 - nobody that important / @nobodythatimpo2

10/08/2018 at 04:02AM

21
#1926 - Juan / @jubujjamer

10/15/2018 at 07:42PM

21
#1927 - Aubrey Lavigne / @AubreySLavigne

10/20/2018 at 08:00AM

21
#1928 - Pak Wing / @_Pak_Wing_

10/25/2018 at 01:34PM

21
#1929 - Why Am / @WhysDeCatOnFire

11/07/2018 at 04:52PM

21
#1930 - Zenghanzhang / @hzengroger

11/10/2018 at 06:24AM

21
#1931 - steve N ӾlvЮ / @xlvio

11/13/2018 at 08:42PM

21
#1932 - Levi Self / @LeviRSelf

11/18/2018 at 06:16AM

21
#1933 - unclewangshushu / @shuwushu

11/29/2018 at 06:05AM

21
#1934 - Jacky Tian / @xjtian

11/29/2018 at 06:24AM

21
#1935 - Eluded7 / @Eluded71

12/19/2018 at 05:58PM

21
#1936 - TimMcGuire / @mcguire

12/22/2018 at 09:06PM

21
#1937 - Jasper Pangilinan / @JasperP

12/24/2018 at 12:12AM

21
#1938 - sstar / @sstar60015687

12/26/2018 at 09:34AM

21
#1939 - Jonny Wilson / @thejondom

12/27/2018 at 06:46PM

21
#1940 - churaki / @churaki

01/24/2019 at 01:36PM

21
#1941 - Thomas Branch / @twighk

01/27/2019 at 01:06PM

21
#1942 - Filipe Brandenburger / @filbranden

02/17/2019 at 08:14AM

21
#1943 - Thilo Rörig / @scholith

02/21/2019 at 09:15PM

21
#1944 - Sam Weitzman / @weitzman_sam

03/02/2019 at 08:43PM

21
#1945 - vince / @vincentvangott

03/02/2019 at 10:40PM

21
#1946 - DanSnow / @dododavid006

03/06/2019 at 02:20AM

21
#1947 - Tom Szyszko / @DaPolishMafia01

03/15/2019 at 07:50PM

21
#1948 - Matteo / @Matteo_Mer

04/04/2019 at 10:58PM

21
#1949 - arsi arola / @mos_kiitto

05/15/2019 at 02:16PM

21
#1950 - Ralf Brunckhorst / @ralfbrunck

05/29/2019 at 08:03AM