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):
21
#1711 - brucesnyder / @brucesnyder

05/03/2017 at 08:41PM

21
#1712 - Clement Keirua / @clemkeirua

05/05/2017 at 10:57PM

21
#1713 - Guillem Palou / @guillempalou

05/08/2017 at 03:22PM

21
#1714 - Kyouma / @kyoumaJohn

05/19/2017 at 01:05PM

21
#1715 - Melvin Cheung / @MelvinCheung

05/22/2017 at 06:32PM

21
#1716 - Anders Schramm / @AndersSchramm

05/22/2017 at 10:11PM

21
#1717 - Utkrisht Dhankar / @UtkrishtDhankar

05/24/2017 at 10:10AM

21
#1718 - Ryan Coopersmith / @RyanCoopersmit1

06/03/2017 at 02:25PM

21
#1719 - Alpha Beta / @AlphaBe54661044

06/03/2017 at 03:42PM

21
#1720 - WangkeunOh / @owg7689

06/06/2017 at 10:02AM

21
#1721 - Pablo / @suspekt007

06/07/2017 at 03:58AM

21
#1722 - Carl Egbert / @CarlOEgbert

06/09/2017 at 05:42AM

21
#1723 - Scott Mills / @smm1729

06/11/2017 at 07:40PM

21
#1724 - jsg / @jsg1122

06/15/2017 at 09:00PM

21
#1725 - Jon Doe / @JonDoe33157611

06/19/2017 at 01:45AM

21
#1726 - Ryan McNamara / @MadDogMcNamara

06/23/2017 at 04:41AM

21
#1727 - Tom Taylor / @larsonsduck

07/03/2017 at 03:07PM

21
#1728 - Camron Flanders / @camflan

07/12/2017 at 04:31AM

21
#1729 - apartment1812 / @apartment18121

07/14/2017 at 12:28AM

21
#1730 - Patrick Sanan / @patricksanan

07/21/2017 at 03:50PM

21
#1731 - Jonathan Eidsness / @jonathaneidsnes

07/24/2017 at 08:13PM

21
#1732 - adeel hussain / @adeelhussain

07/28/2017 at 10:56AM

21
#1733 - Johan Bleuzen / @jBleuzen

07/28/2017 at 02:48PM

21
#1734 - yaboo / @www_yaboo_co_jp

08/07/2017 at 10:09AM

21
#1735 - guilherme / @guireisc

08/08/2017 at 10:43AM

21
#1736 - Igor Sowinski / @IgorSowinski

08/16/2017 at 04:36PM

21
#1737 - Cyrus Nikolaidis / @CyrusNikolaidis

08/20/2017 at 03:22AM

21
#1738 - DJ Martin / @DeeJay_Wins

08/23/2017 at 09:25PM

21
#1739 - Jason / @linlin110

08/24/2017 at 01:09AM

21
#1740 - Kevin Ly / @kevinnnly

08/25/2017 at 07:14PM