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

3064 active golfers, 14411 entries

Leaderboard (lowest score wins):
17
#991 - ixf / @ixfdv

07/05/2019 at 06:09PM

17
#992 - Gustavo Almeida / @gustaalmeidaws

07/14/2019 at 05:03PM

17
#993 - Malcolm Sharpe / @blueblimpms

07/17/2019 at 10:21AM

17
#994 - Nick Yeow / @nickyeow

07/18/2019 at 04:29PM

17
#995 - Hxhxhrra / @hxhxhrra

07/21/2019 at 03:45PM

17
#996 - Bradley M. Small / @BradleySmall

07/23/2019 at 07:56PM

17
#997 - forvimgolf / @forvimgolf2

08/14/2019 at 02:29PM

17
#998 - vimRunnerUp3000 / @VUp3000

08/17/2019 at 10:41PM

17
#999 - David Ding / @gnidding

08/28/2019 at 03:32AM

17
#1000 - Brice Letcher / @bricoletc

08/29/2019 at 09:04PM

17
#1001 - greengreen / @greengr09073862

09/01/2019 at 02:24PM

17
#1002 - EL KESRI Othmane / @KesriOthmane

09/18/2019 at 09:44AM

17
#1003 - Sebin Babu / @sarcasticbabu

09/24/2019 at 08:11AM

17
#1004 - Brandon Harrison / @llAboutB

09/24/2019 at 04:07PM

17
#1005 - NeoVimEmacs / @VimNeo

09/29/2019 at 01:03PM

17
#1006 - Jörg Meyer / @JoergMy

10/19/2019 at 08:38PM

17
#1007 - aᵣᵤhᵢ / @aruhi_

10/24/2019 at 12:59AM

17
#1008 - Melvin Cheung / @MelvinCheung

10/30/2019 at 03:32PM

17
#1009 - Lei Kin / @kireinasorakin

11/12/2019 at 03:27PM

17
#1010 - William John Gowers / @_johngowers

11/13/2019 at 11:02AM

17
#1011 - Magnus / @praktiskt

11/17/2019 at 03:30PM

17
#1012 - Alexander Volkovsky / @alan_aers

11/17/2019 at 09:40PM

17
#1013 - shota_ogswr / @shota_ogasawara

11/18/2019 at 03:07PM

17
#1014 - Jonathan DeYoung / @JonathanDeyoung

11/28/2019 at 12:17AM

17
#1015 - Volodymyr / @vkozach

12/01/2019 at 05:01PM

17
#1016 - tomo@D2S / @e_2_718281828

12/06/2019 at 01:22PM

18
#1017 - Antonia Siu / @not_antonia

04/04/2016 at 01:40AM

18
#1018 - Eric Roberts / @notabmovieactor

04/13/2016 at 06:05PM

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

04/14/2016 at 11:07PM

18
#1020 - Daniel Latzer / @tournqat

05/02/2016 at 03:59PM