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

2756 active golfers, 12650 entries

Leaderboard (lowest score wins):
19
#1321 - Leila Loezer / @leilaloezer

06/02/2018 at 05:26PM

19
#1322 - 石奕心 / @allenshih1

06/07/2018 at 12:34AM

19
#1323 - Mateen Ulhaq / @sicariusnoctis

06/10/2018 at 02:14AM

19
#1324 - Xiangyu Xu / @bkbncn

06/10/2018 at 06:43AM

19
#1325 - 赤佐田奈葉 / @akasatanaha_

06/26/2018 at 02:33AM

19
#1326 - nimms / @insofrnet

07/02/2018 at 11:47AM

19
#1327 - Torsten Hendrich / @TorstenHendrich

07/09/2018 at 01:01PM

19
#1328 - Jens Thomas / @_jthomas

07/17/2018 at 06:43PM

19
#1329 - Apox / @apox159

07/18/2018 at 09:27PM

19
#1330 - BartJanssen / @BartJanssen

07/23/2018 at 09:35AM

19
#1331 - Hunter Tidwell / @hunter2tidwell

08/01/2018 at 12:11AM

19
#1332 - Vinh tran / @Catasaurrr

08/01/2018 at 09:13PM

19
#1333 - Toshi Noguchi / @toshiherooo

08/01/2018 at 09:20PM

19
#1334 - Foo Bar / @FooBarely

08/02/2018 at 10:09PM

19
#1335 - Frank Korf / @OMGFrank

08/14/2018 at 04:42PM

19
#1336 - Dr. Rev. J. "Paranoid Android" Kirchartz / @JKirchartz

08/19/2018 at 06:02PM

19
#1337 - Cam Smith / @Comradesmith

08/21/2018 at 10:56AM

19
#1338 - Chris / @Rephiscorth

08/29/2018 at 03:53PM

19
#1339 - Alexander Covington / @ACov96

08/30/2018 at 03:28PM

19
#1340 - Weston Neal / @wtneal

08/31/2018 at 07:11PM

19
#1341 - Nico Kreiling / @NicoKreiling

09/01/2018 at 04:29PM

19
#1342 - Fellow Millennium / @Fellow2000

09/03/2018 at 10:51AM

19
#1343 - daniel / @daniel31464605

09/11/2018 at 07:23PM

19
#1344 - Julià Mestieri / @julimestieri

09/12/2018 at 02:44PM

19
#1345 - h3x3sworld / @h3x3sworld

09/17/2018 at 02:18PM

19
#1346 - Not real / @Notreal70353016

09/21/2018 at 09:03PM

19
#1347 - vimgolf / @myspare307

09/25/2018 at 05:34AM

19
#1348 - Clmi / @c_decaf

09/30/2018 at 07:45AM

19
#1349 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 02:01AM

19
#1350 - Roger Bongers / @RogerBongers

10/02/2018 at 03:20AM