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

3064 active golfers, 14411 entries

Leaderboard (lowest score wins):
18
#1021 - Garph0 / @garph0

06/17/2016 at 01:26PM

18
#1022 - Stephanie Kortig / @stephkortig

06/24/2016 at 03:47PM

18
#1023 - kuwa / @lrmystp

06/24/2016 at 03:59PM

18
#1024 - Eduardo / @earada

06/27/2016 at 03:27PM

18
#1025 - Reuben Huxley / @missiontocode

06/29/2016 at 03:33AM

18
#1026 - Xiaosong Chen / @xiaosong0911

07/02/2016 at 07:55AM

18
#1027 - Martin Tõnusoo / @martintonusoo

07/28/2016 at 09:16PM

18
#1028 - joel / @Atree23

07/29/2016 at 11:39PM

18
#1029 - isaneba / @isaneba

08/03/2016 at 04:40PM

18
#1030 - exp977 / @exp977

08/12/2016 at 03:41PM

18
#1031 - Will / @obiwan__k3n00bi

08/13/2016 at 07:26PM

18
#1032 - Nabarun Chatterjee / @nabarunch

08/16/2016 at 01:39PM

18
#1033 - AODQ / @AODQIG

08/20/2016 at 01:04AM

18
#1034 - みざくら / @mizakura07

08/20/2016 at 05:29AM

18
#1035 - Albert Mikó / @berci1992

08/25/2016 at 08:06PM

18
#1036 - antoine biard / @biard_antoine

08/29/2016 at 02:38PM

18
#1037 - Maxime Reis / @MaximeReis

08/29/2016 at 03:16PM

18
#1038 - Krzysztof Borkowski / @smiechowy

09/02/2016 at 05:13PM

18
#1039 - vansan / @VinceVansan

09/20/2016 at 02:55AM

18
#1040 - Smeg Head / @TomWaitsIsMyGod

09/28/2016 at 01:13PM

18
#1041 - Łukasz Daniluk / @lukaszd93

10/01/2016 at 01:46PM

18
#1042 - travv0 / @travv0

10/03/2016 at 05:01PM

18
#1043 - poke / @useraaaaaaaaaaf

10/04/2016 at 02:12PM

18
#1044 - VectorFrog / @vectorFrog

10/05/2016 at 05:33PM

18
#1045 - Bradley Tse / @bradleytse

10/15/2016 at 09:56PM

18
#1046 - S33 Dunda / @s33dUnda

10/22/2016 at 01:12AM

18
#1047 - Brian Phelps / @electronjunkie

10/23/2016 at 06:14PM

18
#1048 - Mark Dawson / @drmarkdawson

10/24/2016 at 09:01PM

18
#1049 - JustGage / @JustGage

10/28/2016 at 07:01PM

18
#1050 - Jonathan Elliott / @jon__elliott

10/29/2016 at 11:15PM