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

2705 active golfers, 12428 entries

Leaderboard (lowest score wins):
22
#1951 - SirMizou / @SirMizou

09/25/2018 at 11:17PM

22
#1952 - John Oleksowicz / @JohnOlek

10/05/2018 at 03:00PM

22
#1953 - Bartosz Sadel / @bartosz_sadel

10/08/2018 at 08:51PM

22
#1954 - Mr PewPew / @mrpewpew2

10/11/2018 at 07:47PM

22
#1955 - Dax / @daaawx

10/15/2018 at 06:50PM

22
#1956 - Sxcy / @SxcyX

10/23/2018 at 09:37PM

22
#1957 - vg / @vg53210350

10/28/2018 at 06:33PM

22
#1958 - Anonymos / @cyou_teyi

10/29/2018 at 08:26AM

22
#1959 - Di Peng / @DCodier

10/31/2018 at 04:59AM

22
#1960 - Eric Moss / @NotEricMoss

11/03/2018 at 04:54AM

22
#1961 - ✖❎✖𝔩'𝔒𝔩𝔦𝔳𝔢✖❎✖ / @olivschwab

11/06/2018 at 02:02PM

22
#1962 - Fabio Branquinho / @branquif

11/08/2018 at 10:59AM

22
#1963 - peter.xiao / @yoco315

11/09/2018 at 10:20AM

22
#1964 - Chris Maher / @chrismaherthe

11/14/2018 at 03:41PM

22
#1965 - Sören Schellhoff / @Jackokomm

11/18/2018 at 03:14PM

22
#1966 - Gary Wild / @amande_pistache

11/19/2018 at 10:12PM

22
#1967 - Performa / @performa6400

11/27/2018 at 05:19PM

22
#1968 - Brian Donovan / @eventualbuddha

11/29/2018 at 04:21PM

22
#1969 - Shafiq Jetha / @sjetha

12/13/2018 at 10:54PM

22
#1970 - Vending Machine / @storyn26383

12/16/2018 at 06:53AM

22
#1971 - サボテン / @gen22334

12/19/2018 at 05:29PM

22
#1972 - Nate / @natedoran

01/06/2019 at 05:47AM

22
#1973 - hbdgr / @t_hbdgr

01/13/2019 at 09:27PM

22
#1974 - pirkes / @gPirkes

01/16/2019 at 01:43PM

22
#1975 - Blah Blah / @BlahBla08410389

01/19/2019 at 04:55PM

22
#1976 - 강현 / @Applesquiz

01/20/2019 at 04:27PM

22
#1977 - drswaghawk / @drswaghawk

01/20/2019 at 11:51PM

22
#1978 - 默罕默德 / @Rt6RjEAJ987Woes

01/21/2019 at 01:10PM

22
#1979 - Michael Aquilina / @mikeaquilina4

01/27/2019 at 10:21PM

22
#1980 - omahn / @omahn

02/08/2019 at 10:10PM