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

2955 active golfers, 13765 entries

Leaderboard (lowest score wins):
18
#1051 - Gauvenator / @gauvenator

06/06/2017 at 12:44AM

18
#1052 - Sergey Lisakov / @pozitron57

06/06/2017 at 08:09PM

18
#1053 - Артем Верхоглядов / @artditel

06/19/2017 at 01:37PM

18
#1054 - Harsh Kumar / @datsleepyguy

06/21/2017 at 07:40AM

18
#1055 - Sean Wayman / @SeanInFrance

06/23/2017 at 08:04AM

18
#1056 - vimgolf player / @VimgolfPlayer

06/26/2017 at 07:46PM

18
#1057 - Anne Pacalet / @_Anne_P

07/07/2017 at 01:52PM

18
#1058 - Dan Simmons / @simmons_dan

07/11/2017 at 05:05PM

18
#1059 - Jo Guy / @vimsnit

08/17/2017 at 08:01AM

18
#1060 - tyy / @luckytianyiyan

08/22/2017 at 08:38AM

18
#1061 - Daniel Rollins / @DanielJRollins

08/23/2017 at 10:24AM

18
#1062 - Phin Jensen / @phinjensen

08/23/2017 at 02:49PM

18
#1063 - Daniel Wang / @npbool

08/29/2017 at 11:11AM

18
#1064 - Alejandro Catalina / @AleexCatalina

09/10/2017 at 03:30PM

18
#1065 - Marco Bompani / @BompaniMarco

09/15/2017 at 12:40PM

18
#1066 - John / @JohnQJames

09/19/2017 at 07:55PM

18
#1067 - Andrew's Testing / @andrewwwtest

09/19/2017 at 08:18PM

18
#1068 - Harrison DiStefano / @HarrisonDiStef1

09/21/2017 at 07:47PM

18
#1069 - Simon Johansson / @SudoQ_

09/27/2017 at 10:47AM

18
#1070 - Kevin Viricel / @kv_kleww

09/29/2017 at 03:53PM

18
#1071 - 한우석 / @wooseokhan

09/29/2017 at 05:58PM

18
#1072 - Dan Leech / @dantleech

10/01/2017 at 06:23PM

18
#1073 - 5tephen / @geluso

10/04/2017 at 06:16AM

18
#1074 - Elizabeth / @sprinkles418

10/05/2017 at 06:24PM

18
#1075 - beard / @rootbeard88

10/09/2017 at 04:47AM

18
#1076 - Gabor Lekeny / @leki75

10/24/2017 at 02:22PM

18
#1077 - chriscr / @chriscr_cr

10/29/2017 at 05:18PM

18
#1078 - popo5colo / @popo5colo1

10/31/2017 at 02:44AM

18
#1079 - Adrián / @adrDBh

11/02/2017 at 10:32PM

18
#1080 - idle poze / @idlepoze

11/03/2017 at 01:57PM