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
#271 - godot / @gclair80

08/08/2017 at 10:39PM

14
#272 - Ky Statham / @ijustwannacode

08/09/2017 at 07:17PM

14
#273 - Philippe Brouillard / @_kurowasan

08/12/2017 at 04:58PM

14
#274 - Floris van Liere / @FlorisvanLiere

08/15/2017 at 05:59AM

14
#275 - Dmitry Platonov / @d_platonov

08/15/2017 at 07:53PM

14
#276 - Wouter van der Meel / @AltWouss

08/21/2017 at 12:00PM

14
#277 - nekorug😊🌼 / @nekorug

08/23/2017 at 11:40PM

14
#278 - Marcos de Oliveira / @MsOliveiraa

08/24/2017 at 11:45AM

14
#279 - Darren Weston / @dazWestonUK

08/30/2017 at 10:28AM

14
#280 - Markus / @dayshade_7

08/30/2017 at 04:46PM

14
#281 - ken ore / @ken60625

09/02/2017 at 08:25AM

14
#282 - zava / @znl1087

09/03/2017 at 09:31AM

14
#283 - lujianmei / @lujianmei

09/05/2017 at 10:55PM

14
#284 - Xuzhan Sun / @xuzsun

09/11/2017 at 07:24AM

14
#285 - 郑晓东 / @DGivxLTVopiOQap

09/11/2017 at 07:47AM

14
#286 - Jasper Armstrong / @jasperarmstrong

09/14/2017 at 10:20AM

14
#287 - Christian Stammen / @c0smiq

09/15/2017 at 09:09PM

14
#288 - Alphonso De La Morte / @FatDrakula

09/17/2017 at 11:55AM

14
#289 - Will / @VVi11_I_AM

09/18/2017 at 09:21AM

14
#290 - elmoloves / @ElmoLovesSilly

09/18/2017 at 03:33PM

14
#291 - Owen / @owengeorge_

09/18/2017 at 08:36PM

14
#292 - lack / @lack84639857

09/20/2017 at 01:51AM

14
#293 - exsaber / @exsaber508

09/20/2017 at 05:02AM

14
#294 - Alex Coventry / @AlexCoventry4

09/20/2017 at 07:46AM

14
#295 - Jon Wålstedt / @jonwalstedt

09/20/2017 at 08:49PM

14
#296 - Bonjew / @Bonjew_L

09/22/2017 at 03:08AM

14
#297 - how ja din / @o157529

09/22/2017 at 06:39PM

14
#298 - xer0.5ive / @Bibekshah

09/22/2017 at 07:53PM

14
#299 - Kristoffer Ahlqvist / @ahlqvistk

09/24/2017 at 12:03PM

14
#300 - Karamfil / @lz1aai

09/24/2017 at 08:24PM