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

2712 active golfers, 12466 entries

Leaderboard (lowest score wins):
17
#871 - Ackman Syntax Error / @AckmanSux

12/21/2018 at 08:00PM

17
#872 - Greg Anders / @gregory_anders

12/28/2018 at 04:48PM

17
#873 - Tinko Minko / @tandikula

01/30/2019 at 08:42PM

17
#874 - Wei Wen / @goweiwen

02/14/2019 at 02:38AM

17
#875 - sloppypapi / @sloppypapi5

02/20/2019 at 07:31PM

17
#876 - Kristian Haug / @krimhaug

02/26/2019 at 12:54PM

17
#877 - Roger Stoltz / @rogsto1

02/27/2019 at 08:19PM

17
#878 - ثامر / @julienborghetti

03/04/2019 at 09:29PM

17
#879 - wanghbxxxx / @wanghbxxxx

03/28/2019 at 01:02PM

17
#880 - Tucker Hayden / @TuckNRollio

04/17/2019 at 03:13PM

17
#881 - Potato King / @j0hnth3ripp3r

04/18/2019 at 01:36PM

17
#882 - Bruce Woodward / @b00ffer

04/21/2019 at 08:41AM

17
#883 - shredded / @shredded

04/23/2019 at 09:43PM

17
#884 - Shreyas Balaji / @balaji_shreyas

05/05/2019 at 10:53PM

17
#885 - Arno / @arnoxmp

05/08/2019 at 04:38PM

17
#886 - Elcio Ferreira / @elcio

05/15/2019 at 03:02AM

17
#887 - Tim Dean / @Tmdean

06/06/2019 at 04:02PM

17
#888 - Billy / @Billy67965753

06/07/2019 at 02:54PM

17
#889 - Magnus Bjuvensjö / @mbjuvensjo

06/10/2019 at 09:40PM

17
#890 - Philip / @vCoRezZ

06/13/2019 at 01:33PM

18
#891 - Antonia Siu / @not_antonia

04/04/2016 at 01:40AM

18
#892 - Eric Roberts / @notabmovieactor

04/13/2016 at 06:05PM

18
#893 - Lluís Mª Bosch / @LluisMa

04/14/2016 at 11:07PM

18
#894 - Daniel Latzer / @tournqat

05/02/2016 at 03:59PM

18
#895 - Garph0 / @garph0

06/17/2016 at 01:26PM

18
#896 - Stephanie Kortig / @stephkortig

06/24/2016 at 03:47PM

18
#897 - kuwa / @lrmystp

06/24/2016 at 03:59PM

18
#898 - Eduardo / @earada

06/27/2016 at 03:27PM

18
#899 - Reuben Huxley / @missiontocode

06/29/2016 at 03:33AM

18
#900 - Xiaosong Chen / @xiaosong0911

07/02/2016 at 07:55AM