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

2883 active golfers, 13373 entries

Leaderboard (lowest score wins):
21
#1831 - Bob Johnson / @BobJohn72127595

12/19/2017 at 12:49PM

21
#1832 - Entropitor / @entropitor

12/26/2017 at 01:14PM

21
#1833 - Mike Chen / @chagel

12/27/2017 at 02:15PM

21
#1834 - ben / @benb_123

01/09/2018 at 04:57AM

21
#1835 - Martin Skarzynski / @marskar

01/11/2018 at 04:23AM

21
#1836 - ArizonaPampa / @ArizonaPampa

01/17/2018 at 01:43PM

21
#1837 - kikov79 / @kikov79

01/18/2018 at 11:22PM

21
#1838 - Sebastian Wieland / @oktupol

01/19/2018 at 10:36AM

21
#1839 - Koudougou / @OpenPatate

01/19/2018 at 02:19PM

21
#1840 - eddie leon / @_eddie_leon

01/24/2018 at 10:18PM

21
#1841 - Jacob Tailor / @spydronex

01/25/2018 at 06:00PM

21
#1842 - Michael D Jones / @biotechjones

02/03/2018 at 09:19PM

21
#1843 - Saher El-Neklawy / @saherneklawy

02/05/2018 at 04:22PM

21
#1844 - Romain D. / @r_dulery

02/05/2018 at 07:28PM

21
#1845 - Veljko Dimic / @v2dimic

02/06/2018 at 07:47PM

21
#1846 - Erik Krane / @e__krane

02/06/2018 at 08:19PM

21
#1847 - Roger Spencer / @RojSpencer

02/06/2018 at 09:57PM

21
#1848 - ryu gosling / @bbbeloveddd

02/18/2018 at 07:05PM

21
#1849 - Jason Smythe / @JasoonSmythe

02/25/2018 at 09:48AM

21
#1850 - Klaus-Peter Schreiner / @KlaPeSch13

03/01/2018 at 12:46PM

21
#1851 - Meda Marisela / @LongbowMeda

03/09/2018 at 05:59AM

21
#1852 - odihat / @odihate

03/17/2018 at 04:45PM

21
#1853 - David / @Dave94_15

03/18/2018 at 06:34PM

21
#1854 - Jon Simpson / @NodeStreamer

03/21/2018 at 10:31PM

21
#1855 - johnkershaw / @johnkershaw

04/20/2018 at 04:06AM

21
#1856 - A. Grimprel / @AGrimprel

04/29/2018 at 03:08PM

21
#1857 - g5s6r2c4h / @g5forMallory

05/01/2018 at 12:35AM

21
#1858 - fdasfasfasga / @deteriorateredu

05/03/2018 at 09:36PM

21
#1859 - klaxalk / @klaxalk

05/09/2018 at 11:09AM

21
#1860 - Dennis Tang / @tangdennis

05/13/2018 at 07:20PM