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
#1861 - Tomas[Tomsik68] / @tomsik68

10/14/2016 at 09:52PM

21
#1862 - eozd / @e_ozd

10/23/2016 at 12:58PM

21
#1863 - Adrian K. Eriksen / @adrianke

10/24/2016 at 04:50PM

21
#1864 - Alexis Praga / @Fitzwy

10/28/2016 at 11:45AM

21
#1865 - Alpa_akm / @Alpa_akm

10/29/2016 at 02:57AM

21
#1866 - Shmelev Jaroslav / @hummelchen0

10/30/2016 at 12:52PM

21
#1867 - Steven Occhipinti / @steveocchipinti

11/04/2016 at 04:31AM

21
#1868 - Cody Roberts / @bloomyminded

11/15/2016 at 03:44AM

21
#1869 - sudqi jawabreh / @sudqijawabreh

11/15/2016 at 05:16PM

21
#1870 - Thierry Flauss / @ThFjunior

11/17/2016 at 06:44PM

21
#1871 - Steven Herbst / @transistorman

11/21/2016 at 06:10AM

21
#1872 - Sergey Alekhnovich / @salekhn

11/25/2016 at 09:11PM

21
#1873 - Ilya Glotov / @ilyaglotov

11/29/2016 at 10:54PM

21
#1874 - Sam Noedel / @alphanotmeric

11/30/2016 at 04:45AM

21
#1875 - 김재민 / @slamdunkbk

12/01/2016 at 06:47AM

21
#1876 - kodemaan / @kodemaan

12/01/2016 at 10:34PM

21
#1877 - VivienVandaele / @VandaeleVivien

12/10/2016 at 04:58PM

21
#1878 - Pablo Fonseca / @pablobfonseca

12/15/2016 at 08:38PM

21
#1879 - Lewis Sparlin / @lewis_sparlin

12/20/2016 at 07:26PM

21
#1880 - Tuxi Tux / @MrKrautee

12/22/2016 at 09:16PM

21
#1881 - Jed Cua / @jedcua_novare

12/27/2016 at 07:24AM

21
#1882 - Markus Lux / @_l0x_

01/03/2017 at 01:12PM

21
#1883 - Pawel / @pracownikpl

01/17/2017 at 09:32AM

21
#1884 - ZW / @ZW73226885

01/24/2017 at 06:45PM

21
#1885 - Riz Joj / @rizjoj

01/27/2017 at 05:15AM

21
#1886 - Mohd Amin Yuddin / @mohdaminyuddin

02/07/2017 at 04:52AM

21
#1887 - Cù Hữu Hoàng / @Cuhuuhoang

02/14/2017 at 03:08AM

21
#1888 - Julien Pepy / @shin_komuta

02/22/2017 at 04:12PM

21
#1889 - Evgeny Morozov / @Evmorov

02/25/2017 at 09:07PM

21
#1890 - Zack Orndorff / @ZackOrndorff

03/04/2017 at 06:54PM