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

2828 active golfers, 12996 entries

Leaderboard (lowest score wins):
17
#871 - Артем Мухометзянов / @Timon_Surikat

08/18/2018 at 10:21PM

17
#872 - Satheesh Kumar / @jmsatheesh

08/20/2018 at 01:15AM

17
#873 - Francisco Rivera / @frivera621

08/25/2018 at 04:53PM

17
#874 - Daniel Vaqueiro / @chimidea

08/25/2018 at 05:46PM

17
#875 - 김성현 / @TVrZzAZsmL4lS3S

08/26/2018 at 06:05AM

17
#876 - vim001_ / @vim001_

09/02/2018 at 07:58PM

17
#877 - Test / @TheVastComplex

09/06/2018 at 04:18PM

17
#878 - DustVoice / @DustVoice

09/10/2018 at 09:08AM

17
#879 - royer / @RoyerMoyer1

09/10/2018 at 09:02PM

17
#880 - Matt Burg / @matsbleurgh

09/12/2018 at 08:46PM

17
#881 - Toby Runo / @toptab267

09/15/2018 at 02:50PM

17
#882 - Ruben Paz / @IstarEldritch

09/15/2018 at 10:02PM

17
#883 - Sean / @SeanZhou1023

09/22/2018 at 01:14AM

17
#884 - James LaChance / @FatBoyXPC

10/11/2018 at 08:08AM

17
#885 - caplod / @caplod

10/16/2018 at 11:00PM

17
#886 - Jo / @Jo59893132

10/25/2018 at 05:11AM

17
#887 - Will / @SirAero

10/25/2018 at 06:32PM

17
#888 - Jeremy / @jcowgar

10/26/2018 at 10:57PM

17
#889 - Jeremy Wilksch / @jpwilksch

10/31/2018 at 05:48AM

17
#890 - Nedal Kouissi / @n3d41

11/09/2018 at 11:19AM

17
#891 - diwa / @Di_nate_

11/22/2018 at 01:30PM

17
#892 - Mathieu Chataigner / @mchataigner

11/27/2018 at 01:55PM

17
#893 - あすたちん / @astatine0x55

12/01/2018 at 02:35PM

17
#894 - hansim / @hanstartup

12/02/2018 at 11:17AM

17
#895 - Angry Dev / @AngryDev7

12/04/2018 at 10:04PM

17
#896 - Aurélien Blicq / @AurelienBlicq

12/12/2018 at 02:22PM

17
#897 - Fang Yufan / @Fang_Yufan

12/12/2018 at 02:39PM

17
#898 - Bennett / @bennettbackward

12/20/2018 at 11:44AM

17
#899 - Ackman Syntax Error / @AckmanSux

12/21/2018 at 08:00PM

17
#900 - Greg Anders / @gregory_anders

12/28/2018 at 04:48PM