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

2771 active golfers, 12725 entries

Leaderboard (lowest score wins):
19
#1291 - umnikos / @umnikos

01/28/2018 at 10:05AM

19
#1292 - Kubek2k / @kubek2k

02/01/2018 at 09:01PM

19
#1293 - Dennis Burke / @ikirudennis

02/03/2018 at 04:25PM

19
#1294 - l / @ioio85

02/03/2018 at 08:07PM

19
#1295 - Herz3h / @Herz3h

02/03/2018 at 10:17PM

19
#1296 - Anders Mårtensson / @nemrawd

02/04/2018 at 01:02AM

19
#1297 - Ilker Mutlu / @ilkermutlu

02/05/2018 at 07:56AM

19
#1298 - neopulsar / @_neopulsar_

02/09/2018 at 12:31AM

19
#1299 - blamitter ✏️ / @blamitter

02/12/2018 at 05:53PM

19
#1300 - Felix Boers / @felixboers

02/18/2018 at 09:29AM

19
#1301 - Roger Zurawicki / @zurawiki

02/21/2018 at 04:48AM

19
#1302 - mikelplhts / @mikelplhts

02/25/2018 at 01:53AM

19
#1303 - Max Krogius / @MaxKrogius

02/25/2018 at 09:51PM

19
#1304 - Bart Reynolds / @bartums

02/28/2018 at 12:49PM

19
#1305 - slicklash / @slicklash

03/03/2018 at 07:43PM

19
#1306 - MrMatuski / @MrMatuski

03/08/2018 at 07:27PM

19
#1307 - Vim Golfer / @vimgolfing

03/15/2018 at 05:44PM

19
#1308 - Warley Vital / @wlativ

03/18/2018 at 09:13PM

19
#1309 - Paul Page / @theRealPaulPage

03/19/2018 at 09:16PM

19
#1310 - David Pimentel / @daveypimentel

03/22/2018 at 09:16PM

19
#1311 - Paul Draghicescu / @pdragy

03/23/2018 at 06:26AM

19
#1312 - Tim / @munnadugga

03/29/2018 at 08:56PM

19
#1313 - DHM / @DHM29978992

04/09/2018 at 04:40AM

19
#1314 - J Paul Daigle / @philosodad

04/11/2018 at 02:33PM

19
#1315 - Kevin Köster / @koestr

04/13/2018 at 10:05PM

19
#1316 - David Guevel / @davidguevel

04/20/2018 at 03:03AM

19
#1317 - Vanda Hendrychová / @vandiacutek

04/24/2018 at 02:55PM

19
#1318 - Valerio Angelini / @amailp

05/03/2018 at 01:09PM

19
#1319 - Johann Og / @Kronolynx

05/03/2018 at 11:12PM

19
#1320 - Jesse Olson / @bioxcession

05/04/2018 at 09:47PM