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

2837 active golfers, 13051 entries

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

02/17/2017 at 04:06PM

22
#1952 - Lubinator / @Lubinator2

02/20/2017 at 04:14PM

22
#1953 - José María Guisado / @JMGuisadoG

03/20/2017 at 03:35PM

22
#1954 - Jack McCallum / @JaqMcCallum

04/02/2017 at 12:05PM

22
#1955 - alison brie / @al_br_

04/07/2017 at 09:23PM

22
#1956 - Pekka / @avainasiakas

04/19/2017 at 08:15PM

22
#1957 - Juha Paatelma / @jpaatelm

04/20/2017 at 08:57AM

22
#1958 - Pat Haggerty / @haggertypat

04/23/2017 at 12:15PM

22
#1959 - Sean / @seanmcclory

04/23/2017 at 09:54PM

22
#1960 - Sam Knight / @samknight

04/28/2017 at 01:33PM

22
#1961 - Alessandro Nazzani / @anazzani

05/03/2017 at 11:10AM

22
#1962 - ふぁぼ☆りょっぴ / @tak_jmo6928

05/08/2017 at 12:14PM

22
#1963 - James / @Dronak

05/31/2017 at 01:11AM

22
#1964 - Florian Gauger / @FlorianGauger

06/05/2017 at 02:57AM

22
#1965 - MS / @schrectacular

06/06/2017 at 05:58PM

22
#1966 - Will Gunther / @WillGunther

06/11/2017 at 06:44PM

22
#1967 - Bart Brandhoff / @bbrandhoff

06/30/2017 at 08:58PM

22
#1968 - Matthew Wynn / @m_wynn_

07/01/2017 at 01:15PM

22
#1969 - Gurukandhamoorthi / @Gurukandhamoor1

07/09/2017 at 01:26PM

22
#1970 - Russell Ball / @rtball2

07/11/2017 at 12:37AM

22
#1971 - Paul Inc / @hiniol1982

07/12/2017 at 07:59PM

22
#1972 - Etienne Dilocker / @etiennedi

07/20/2017 at 08:29PM

22
#1973 - puyisetev / @puyisetev

08/02/2017 at 10:32AM

22
#1974 - Paul Sonkoly / @Phaul

08/14/2017 at 07:19PM

22
#1975 - Wiktor Jeziorski / @WiktorJeziorsk1

08/15/2017 at 02:20PM

22
#1976 - PandaScript (Thanh Le) / @PandaScriptCom

08/18/2017 at 04:31PM

22
#1977 - Couto / @coutoantisocial

08/21/2017 at 09:47PM

22
#1978 - NOT Takinashi / @TaleLore

08/23/2017 at 01:31PM

22
#1979 - Bhatta Sushmith / @bsushmith

08/23/2017 at 08:57PM

22
#1980 - Davy Jones / @OpsDavy

08/25/2017 at 01:15PM