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

2946 active golfers, 13705 entries

Leaderboard (lowest score wins):
24
#2431 - Andreas Anheuser / @AndreasAnheuser

06/01/2016 at 07:51PM

24
#2432 - 이선협 / @kciter

06/03/2016 at 07:40AM

24
#2433 - Unityお姉さん♡ / @unichan___

06/10/2016 at 04:54AM

24
#2434 - Noah Gumbert / @Noahrama

07/01/2016 at 04:26AM

24
#2435 - Ryan van Rensburg / @rdvr001

07/16/2016 at 06:35PM

24
#2436 - Nikita Danilov / @Mirt_ru

07/17/2016 at 09:06AM

24
#2437 - Duncan Rutland / @djrut

08/10/2016 at 02:13AM

24
#2438 - Oliver / @AkeboshiWind

09/02/2016 at 02:24PM

24
#2439 - Ken Schmidt / @Maigard

09/09/2016 at 10:23PM

24
#2440 - Ameer Ayoub / @magicmeeror

09/16/2016 at 10:00PM

24
#2441 - Aurélien Vallée / @aurelienvallee

11/11/2016 at 05:48AM

24
#2442 - myjunkmails / @myjunkmails

11/24/2016 at 05:26AM

24
#2443 - Sean McMillan / @seanmcmillan_13

11/30/2016 at 07:12PM

24
#2444 - Travis Wulff / @Ffluwsivart

12/01/2016 at 09:14PM

24
#2445 - Joey Zenhäusern / @joeyzenh

12/14/2016 at 10:50PM

24
#2446 - Mattias GABRIEL / @matou008

12/20/2016 at 04:10PM

24
#2447 - Patrick Ball / @vm_wylbur

12/23/2016 at 02:32AM

24
#2448 - Jakob Schnell / @Koebischnell

12/28/2016 at 07:12PM

24
#2449 - Vladislav Syrgii / @GelAles

01/27/2017 at 01:44PM

24
#2450 - YuKai Lin / @YuKai_Lin5566

03/07/2017 at 09:38AM

24
#2451 - Eric Coleman / @EpicColeman

03/16/2017 at 07:26PM

24
#2452 - Kfir Gollan / @kfirgollan

04/07/2017 at 09:08PM

24
#2453 - 馬的愛人 / @felipeanchieta_

04/08/2017 at 02:31PM

24
#2454 - Henns Woerst / @HennsW

04/09/2017 at 09:05AM

24
#2455 - Peter Gundel / @GundelMail

04/16/2017 at 07:33AM

24
#2456 - Aurélien Hervé / @aurel_herve

04/19/2017 at 03:07PM

24
#2457 - Aming / @aminglau

04/25/2017 at 08:48AM

24
#2458 - Jarred Dong / @DongJarred

04/28/2017 at 09:53AM

24
#2459 - qin shulei / @qinshulei

05/04/2017 at 06:49AM

24
#2460 - Þórhallur Sverrisson / @thorhs

06/16/2017 at 12:07PM