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

3064 active golfers, 14411 entries

Leaderboard (lowest score wins):
17
#931 - Marchand Paul-Valère / @pvmarch

05/24/2018 at 04:30PM

17
#932 - Akash Khan / @akash93

06/08/2018 at 01:59AM

17
#933 - Tom ten Thij / @eco_coder

06/28/2018 at 02:36PM

17
#934 - Joachim / @jodles89

07/02/2018 at 01:50AM

17
#935 - Gareth Miller / @CTingCTer

07/12/2018 at 11:07AM

17
#936 - Ben / @ben_rosio

07/16/2018 at 12:05AM

17
#937 - yqu212 / @yqu212

07/26/2018 at 01:01PM

17
#938 - ken.60625 / @60625Ken

08/15/2018 at 01:20PM

17
#939 - Константин Иванович / @Konstantin_1987

08/16/2018 at 06:43AM

17
#940 - Christian Fosli / @porridge111

08/18/2018 at 03:17PM

17
#941 - Артем Мухометзянов / @Timon_Surikat

08/18/2018 at 10:21PM

17
#942 - Satheesh Kumar / @jmsatheesh

08/20/2018 at 01:15AM

17
#943 - Francisco Rivera / @frivera621

08/25/2018 at 04:53PM

17
#944 - Daniel Vaqueiro / @chimidea

08/25/2018 at 05:46PM

17
#945 - 김성현 / @TVrZzAZsmL4lS3S

08/26/2018 at 06:05AM

17
#946 - vim001_ / @vim001_

09/02/2018 at 07:58PM

17
#947 - Test / @TheVastComplex

09/06/2018 at 04:18PM

17
#948 - DustVoice / @DustVoice

09/10/2018 at 09:08AM

17
#949 - royer / @RoyerMoyer1

09/10/2018 at 09:02PM

17
#950 - Matt Burg / @matsbleurgh

09/12/2018 at 08:46PM

17
#951 - Toby Runo / @toptab267

09/15/2018 at 02:50PM

17
#952 - Ruben Paz / @IstarEldritch

09/15/2018 at 10:02PM

17
#953 - Sean / @SeanZhou1023

09/22/2018 at 01:14AM

17
#954 - James LaChance / @FatBoyXPC

10/11/2018 at 08:08AM

17
#955 - caplod / @caplod

10/16/2018 at 11:00PM

17
#956 - Jo / @Jo59893132

10/25/2018 at 05:11AM

17
#957 - Will / @SirAero

10/25/2018 at 06:32PM

17
#958 - Jeremy / @jcowgar

10/26/2018 at 10:57PM

17
#959 - Jeremy Wilksch / @jpwilksch

10/31/2018 at 05:48AM

17
#960 - Nedal Kouissi / @n3d41

11/09/2018 at 11:19AM