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

2771 active golfers, 12725 entries

Leaderboard (lowest score wins):
19
#1261 - Richard Veneracion / @rveneracion

09/24/2017 at 03:50PM

19
#1262 - Paweł Styczewski / @kryspuss

09/25/2017 at 10:02AM

19
#1263 - Bartek / @ShallWeMove

09/25/2017 at 10:50AM

19
#1264 - ylletyll / @ylletyll

09/27/2017 at 07:15PM

19
#1265 - Justin Beavers / @JustinBeavers6

09/29/2017 at 12:40AM

19
#1266 - David Paul / @davidjohnpaul

09/29/2017 at 06:25AM

19
#1267 - Elton Kamami / @pixel_grid

10/07/2017 at 06:55PM

19
#1268 - Lukas Vermeer / @lukasvermeer

10/10/2017 at 04:27PM

19
#1269 - Jason Stidd / @jd_stidd

10/10/2017 at 08:28PM

19
#1270 - Sam Coy / @samthecoy

10/24/2017 at 01:06PM

19
#1271 - Cameron Francis / @35191970

10/25/2017 at 01:44AM

19
#1272 - Mustafa Guler / @mguler96

10/26/2017 at 09:22PM

19
#1273 - Eric P. Stavarache / @EricPtSt

10/27/2017 at 01:55PM

19
#1274 - Omar M. Ali / @OmarMMAli

10/30/2017 at 09:47AM

19
#1275 - Adam Silkey / @Dooflegna

11/07/2017 at 05:18PM

19
#1276 - 梅干 / @Umeboshi_9

11/10/2017 at 10:19AM

19
#1277 - Asmund / @herrasbe

11/17/2017 at 12:05PM

19
#1278 - Aleksander Gajewski / @adgajewski

11/17/2017 at 04:07PM

19
#1279 - Paul Bunch / @gigatesla

11/20/2017 at 09:14PM

19
#1280 - daikiOka / @OdsOka

12/17/2017 at 03:13PM

19
#1281 - Elliott Bignell / @ElliottCBi

12/20/2017 at 08:36AM

19
#1282 - jayrbolton / @jayrbolton

12/21/2017 at 04:55PM

19
#1283 - 小山内まい / @osanamity

12/23/2017 at 06:06PM

19
#1284 - Martin Pedersen / @M4R7iNP

12/29/2017 at 05:21PM

19
#1285 - Mayra Buenrostro / @MayrahBee

01/02/2018 at 02:55AM

19
#1286 - Bradley M. Small / @BradleySmall

01/03/2018 at 01:02PM

19
#1287 - もち / @mochizukikotaro

01/07/2018 at 12:26PM

19
#1288 - Ian Isaac Emnace / @29forte95

01/16/2018 at 08:10AM

19
#1289 - K0Der / @K0Der

01/21/2018 at 01:53PM

19
#1290 - Marcel Boon / @riddlesolving

01/22/2018 at 02:22PM