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

3405 active golfers, 16293 entries

Leaderboard (lowest score wins):
17
#1141 - relastle / @relastle

03/29/2020 at 06:18AM

17
#1142 - Mats Faugli / @matsfaugli

03/29/2020 at 09:42PM

17
#1143 - Lop / @Numeross_

04/02/2020 at 09:25PM

17
#1144 - Daniel Fleischman / @vimgolfdaniel

04/05/2020 at 09:14PM

17
#1145 - Vinícius Hoyer / @viniciushoyer

04/20/2020 at 01:50PM

17
#1146 - Wesley Runnels / @wesleyrunnels

04/25/2020 at 04:17PM

17
#1147 - John Sumner / @rjsumner

04/26/2020 at 03:35PM

17
#1148 - Florian Martin / @Florian72650031

04/28/2020 at 03:07AM

17
#1149 - Bob Streams / @BobStreams1

06/01/2020 at 07:29PM

17
#1150 - Ben Simmons / @Simmons_Ben

06/02/2020 at 10:34PM

17
#1151 - otfsenter / @otfsenter

06/03/2020 at 04:41PM

18
#1152 - Antonia Siu / @not_antonia

04/04/2016 at 01:40AM

18
#1153 - Eric Roberts / @notabmovieactor

04/13/2016 at 06:05PM

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

04/14/2016 at 11:07PM

18
#1155 - Daniel Latzer / @tournqat

05/02/2016 at 03:59PM

18
#1156 - Garph0 / @garph0

06/17/2016 at 01:26PM

18
#1157 - Stephanie Kortig / @stephkortig

06/24/2016 at 03:47PM

18
#1158 - kuwa / @lrmystp

06/24/2016 at 03:59PM

18
#1159 - Eduardo / @earada

06/27/2016 at 03:27PM

18
#1160 - Reuben Huxley / @missiontocode

06/29/2016 at 03:33AM

18
#1161 - Xiaosong Chen / @xiaosong0911

07/02/2016 at 07:55AM

18
#1162 - Martin Tõnusoo / @martintonusoo

07/28/2016 at 09:16PM

18
#1163 - joel / @Atree23

07/29/2016 at 11:39PM

18
#1164 - isaneba / @isaneba

08/03/2016 at 04:40PM

18
#1165 - exp977 / @exp977

08/12/2016 at 03:41PM

18
#1166 - Will / @obiwan__k3n00bi

08/13/2016 at 07:26PM

18
#1167 - Nabarun Chatterjee / @nabarunch

08/16/2016 at 01:39PM

18
#1168 - AODQ / @AODQIG

08/20/2016 at 01:04AM

18
#1169 - みざくら / @mizakura07

08/20/2016 at 05:29AM

18
#1170 - Albert Mikó / @berci1992

08/25/2016 at 08:06PM