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

2970 active golfers, 13860 entries

Leaderboard (lowest score wins):
17
#871 - merphant / @merphant

10/11/2017 at 03:50PM

17
#872 - Ron Alexssen / @Ralexhere

10/11/2017 at 10:11PM

17
#873 - Joshua Lin / @Springbottom

10/13/2017 at 12:34AM

17
#874 - Mike Reinhardt / @subitoforte

10/16/2017 at 08:29PM

17
#875 - MuadDev / @MuadDev

10/17/2017 at 03:01PM

17
#876 - Royce Silvester / @RoyceSilvester

10/22/2017 at 07:49AM

17
#877 - Eric Söderström / @eksoderstrom

11/06/2017 at 11:09PM

17
#878 - Ruben De Smet / @rubdos

11/09/2017 at 08:41PM

17
#879 - Jonathan Johnson / @jonmarkjohnson

11/11/2017 at 10:00PM

17
#880 - Eric Johnson / @dej79

11/12/2017 at 03:58PM

17
#881 - Dave / @RealDaveMancuso

11/26/2017 at 06:01AM

17
#882 - M / @michal36b

12/04/2017 at 11:23PM

17
#883 - John Gadbois / @johngadbois

12/12/2017 at 11:51AM

17
#884 - gink / @anagiwa

12/15/2017 at 11:10AM

17
#885 - wlads / @wlads

12/18/2017 at 09:35PM

17
#886 - Brett Bender / @brttbndr

12/31/2017 at 02:25AM

17
#887 - luzzyzhang / @luzzyzhang

12/31/2017 at 10:59AM

17
#888 - TpouHuK / @TpouHuK_

01/16/2018 at 09:56PM

17
#889 - zhouhe / @zhouhe4

01/25/2018 at 06:06AM

17
#890 - thadeuszlay / @thadeuszlay

01/27/2018 at 06:48PM

17
#891 - 陈振宇 / @1243065115

01/31/2018 at 07:45AM

17
#892 - MathijsHoogland / @MathijsHoogland

02/01/2018 at 01:07PM

17
#893 - Paulo / @032Stardust

02/02/2018 at 04:18PM

17
#894 - André Reigoto / @AndreReigoto

02/21/2018 at 03:32AM

17
#895 - elsie / @elsie06177256

02/23/2018 at 10:01AM

17
#896 - Joel Gärtner / @Jeerok

02/26/2018 at 04:18PM

17
#897 - Thiago Araújo Silva / @thiagoaraujos

03/13/2018 at 05:29PM

17
#898 - Vijai Shankar Natarajan / @NatarajanVijai

03/28/2018 at 01:53AM

17
#899 - David Clark / @thecaymanator

03/30/2018 at 10:16PM

17
#900 - Ted Carlsson / @TedCarlsson

03/31/2018 at 03:41PM