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

2896 active golfers, 13426 entries

Leaderboard (lowest score wins):
19
#1321 - Asmund / @herrasbe

11/17/2017 at 12:05PM

19
#1322 - Aleksander Gajewski / @adgajewski

11/17/2017 at 04:07PM

19
#1323 - Paul Bunch / @gigatesla

11/20/2017 at 09:14PM

19
#1324 - daikiOka / @OdsOka

12/17/2017 at 03:13PM

19
#1325 - Elliott Bignell / @ElliottCBi

12/20/2017 at 08:36AM

19
#1326 - jayrbolton / @jayrbolton

12/21/2017 at 04:55PM

19
#1327 - 小山内まい / @osanamity

12/23/2017 at 06:06PM

19
#1328 - Martin Pedersen / @M4R7iNP

12/29/2017 at 05:21PM

19
#1329 - Mayra Buenrostro / @MayrahBee

01/02/2018 at 02:55AM

19
#1330 - もち / @mochizukikotaro

01/07/2018 at 12:26PM

19
#1331 - Ian Isaac Emnace / @29forte95

01/16/2018 at 08:10AM

19
#1332 - K0Der / @K0Der

01/21/2018 at 01:53PM

19
#1333 - Marcel Boon / @riddlesolving

01/22/2018 at 02:22PM

19
#1334 - umnikos / @umnikos

01/28/2018 at 10:05AM

19
#1335 - Kubek2k / @kubek2k

02/01/2018 at 09:01PM

19
#1336 - Dennis Burke / @ikirudennis

02/03/2018 at 04:25PM

19
#1337 - l / @ioio85

02/03/2018 at 08:07PM

19
#1338 - Herz3h / @Herz3h

02/03/2018 at 10:17PM

19
#1339 - Anders Mårtensson / @nemrawd

02/04/2018 at 01:02AM

19
#1340 - Ilker Mutlu / @ilkermutlu

02/05/2018 at 07:56AM

19
#1341 - neopulsar / @_neopulsar_

02/09/2018 at 12:31AM

19
#1342 - blamitter ✏️ / @blamitter

02/12/2018 at 05:53PM

19
#1343 - Felix Boers / @felixboers

02/18/2018 at 09:29AM

19
#1344 - Roger Zurawicki / @zurawiki

02/21/2018 at 04:48AM

19
#1345 - mikelplhts / @mikelplhts

02/25/2018 at 01:53AM

19
#1346 - Max Krogius / @MaxKrogius

02/25/2018 at 09:51PM

19
#1347 - Bart Reynolds / @bartums

02/28/2018 at 12:49PM

19
#1348 - slicklash / @slicklash

03/03/2018 at 07:43PM

19
#1349 - MrMatuski / @MrMatuski

03/08/2018 at 07:27PM

19
#1350 - Vim Golfer / @vimgolfing

03/15/2018 at 05:44PM