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
#1111 - Dan Leech / @dantleech

10/01/2017 at 06:23PM

18
#1112 - 5tephen / @geluso

10/04/2017 at 06:16AM

18
#1113 - Elizabeth / @sprinkles418

10/05/2017 at 06:24PM

18
#1114 - beard / @rootbeard88

10/09/2017 at 04:47AM

18
#1115 - Gabor Lekeny / @leki75

10/24/2017 at 02:22PM

18
#1116 - chriscr / @chriscr_cr

10/29/2017 at 05:18PM

18
#1117 - popo5colo / @popo5colo1

10/31/2017 at 02:44AM

18
#1118 - Adrián / @adrDBh

11/02/2017 at 10:32PM

18
#1119 - idle poze / @idlepoze

11/03/2017 at 01:57PM

18
#1120 - Ala Hu / @alahu101

11/20/2017 at 02:20PM

18
#1121 - Stas Gavrylov / @stasgavrylov

11/22/2017 at 12:43PM

18
#1122 - Moritz Manner / @moritz_manner

01/04/2018 at 09:10PM

18
#1123 - Ignacy Moryc / @imoryc

01/27/2018 at 04:37PM

18
#1124 - genoskill / @Genoskill

01/29/2018 at 12:20AM

18
#1125 - maks kamnikar / @maks_kamnikar

01/30/2018 at 12:40AM

18
#1126 - Rajeev Ranjan Jha / @rajeevcreatorjh

02/10/2018 at 04:19PM

18
#1127 - andresote / @andresote

02/14/2018 at 09:26PM

18
#1128 - Douglas Perrin / @Deznormal

03/02/2018 at 04:32PM

18
#1129 - Eduardo Hashimoto / @eduhashi

03/03/2018 at 04:01PM

18
#1130 - kashikasitaro / @kashikasita

03/06/2018 at 01:29AM

18
#1131 - GreenPinguin / @GreenPinguin2

03/07/2018 at 04:06PM

18
#1132 - Plósz Péter / @ploszpe

03/19/2018 at 10:31PM

18
#1133 - Khalid Harun / @KhalidHarun

03/21/2018 at 06:29AM

18
#1134 - textonly / @textonly2018

03/22/2018 at 05:18AM

18
#1135 - saranya Krishnan / @Saranya0413

03/27/2018 at 11:31PM

18
#1136 - José Irigon / @jiirigon

04/07/2018 at 07:47PM

18
#1137 - Marcos Almeida / @almeidamarcos_

04/07/2018 at 10:48PM

18
#1138 - Florent Jaby / @Floby

04/09/2018 at 02:52PM

18
#1139 - Matt Fister / @Mistah_Fistah

04/18/2018 at 04:03AM

18
#1140 - David Porter / @phunculist

05/05/2018 at 07:08AM