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

3069 active golfers, 14430 entries

Leaderboard (lowest score wins):
21
#1891 - Mitchell / @Spitchell

03/16/2017 at 02:55PM

21
#1892 - Andreas Anderbach / @AAnderbach

03/19/2017 at 04:38PM

21
#1893 - Mark Brody / @_markbrody

03/23/2017 at 04:49AM

21
#1894 - ephemient / @ephemient

04/15/2017 at 06:47AM

21
#1895 - claytron / @claytron

04/19/2017 at 12:06AM

21
#1896 - Grumpy Nerd / @grumpy_nerd

04/21/2017 at 11:31AM

21
#1897 - Alexander Albrecht / @AalexxDiddi

04/21/2017 at 08:43PM

21
#1898 - Elliot Brock / @mr_minmax

04/24/2017 at 03:15PM

21
#1899 - brucesnyder / @brucesnyder

05/03/2017 at 08:41PM

21
#1900 - Clement Keirua / @clemkeirua

05/05/2017 at 10:57PM

21
#1901 - Guillem Palou / @guillempalou

05/08/2017 at 03:22PM

21
#1902 - Kyouma / @kyoumaJohn

05/19/2017 at 01:05PM

21
#1903 - Anders Schramm / @AndersSchramm

05/22/2017 at 10:11PM

21
#1904 - Utkrisht Dhankar / @UtkrishtDhankar

05/24/2017 at 10:10AM

21
#1905 - Ryan Coopersmith / @RyanCoopersmit1

06/03/2017 at 02:25PM

21
#1906 - Alpha Beta / @AlphaBe54661044

06/03/2017 at 03:42PM

21
#1907 - WangkeunOh / @owg7689

06/06/2017 at 10:02AM

21
#1908 - Pablo / @suspekt007

06/07/2017 at 03:58AM

21
#1909 - Carl Egbert / @CarlOEgbert

06/09/2017 at 05:42AM

21
#1910 - Scott Mills / @smm1729

06/11/2017 at 07:40PM

21
#1911 - jsg / @jsg1122

06/15/2017 at 09:00PM

21
#1912 - Jon Doe / @JonDoe33157611

06/19/2017 at 01:45AM

21
#1913 - Ryan McNamara / @MadDogMcNamara

06/23/2017 at 04:41AM

21
#1914 - Tom Taylor / @larsonsduck

07/03/2017 at 03:07PM

21
#1915 - Camron Flanders / @camflan

07/12/2017 at 04:31AM

21
#1916 - apartment1812 / @apartment18121

07/14/2017 at 12:28AM

21
#1917 - Patrick Sanan / @patricksanan

07/21/2017 at 03:50PM

21
#1918 - Jonathan Eidsness / @jonathaneidsnes

07/24/2017 at 08:13PM

21
#1919 - adeel hussain / @adeelhussain

07/28/2017 at 10:56AM

21
#1920 - Johan Bleuzen / @jBleuzen

07/28/2017 at 02:48PM