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

3870 active golfers, 18755 entries

Leaderboard (lowest score wins):
14
#331 - allforabit / @allforabit

11/14/2017 at 09:22AM

14
#332 - Yuya Aoki / @robokinoko

11/20/2017 at 06:41AM

14
#333 - macmental / @macmental

11/26/2017 at 12:20AM

14
#334 - Rubén Laguna / @ecerulm

11/27/2017 at 09:18PM

14
#335 - Wayne / @lilwayne15561

11/28/2017 at 06:54PM

14
#336 - Eric Liao / @rcliaodev

12/01/2017 at 07:59AM

14
#337 - Andrei Gasparovici / @agasparovici

12/01/2017 at 06:08PM

14
#338 - alex m / @al_mk_

12/01/2017 at 09:13PM

14
#339 - NieDżejkob / @NieDzejkob

12/04/2017 at 05:18PM

14
#340 - flykule / @flykule

12/06/2017 at 09:12AM

14
#341 - Joachim Wedin / @joachim_wedin

12/07/2017 at 09:35PM

14
#342 - eiladin / @eiladin

12/07/2017 at 10:28PM

14
#343 - Rodrigo Munoz / @pixelfuture

12/13/2017 at 05:37AM

14
#344 - Pause / @follymetric

12/14/2017 at 06:25PM

14
#345 - Ryan Miller / @andRyanMiller

12/14/2017 at 08:39PM

14
#346 - Sage san / @sagesancast

12/18/2017 at 07:46AM

14
#347 - Dominic Z / @thammaaa

12/20/2017 at 07:52PM

14
#348 - deepak / @utopianmonk

12/20/2017 at 10:55PM

14
#349 - Edward / @GLineEdward

12/22/2017 at 11:34AM

14
#350 - Yu-Lun Tseng / @YuLunTseng

12/22/2017 at 02:00PM

14
#351 - Minicalion / @MinibillY974

12/22/2017 at 03:17PM

14
#352 - あっつぉ / @tadokorohitoshi

12/23/2017 at 09:46AM

14
#353 - shimma / @chestermx88

12/23/2017 at 10:09AM

14
#354 - Henrique Malheiro / @rike09

12/26/2017 at 05:58PM

14
#355 - Антон Корольков / @Toshegg

12/27/2017 at 03:59PM

14
#356 - 王凯伦 / @WOWnightwish

12/29/2017 at 09:52AM

14
#357 - TomoHung / @TomoiHung

01/07/2018 at 05:42PM

14
#358 - Wilson Chang / @ckwojai

01/11/2018 at 08:04AM

14
#359 - ParasamGateZero / @ParasamGateZero

01/13/2018 at 07:17PM

14
#360 - LungZeno / @LungZenoOpen

01/16/2018 at 10:54PM