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

2758 active golfers, 12667 entries

Leaderboard (lowest score wins):
21
#1741 - Jason / @linlin110

08/24/2017 at 01:09AM

21
#1742 - Kevin Ly / @kevinnnly

08/25/2017 at 07:14PM

21
#1743 - Nguyễn Đăng Quang / @bkhnjkt

09/05/2017 at 04:47AM

21
#1744 - Alexander Bushkovsky / @teplolog

09/06/2017 at 08:58PM

21
#1745 - steph / @brittiskt

09/08/2017 at 01:16PM

21
#1746 - Florian Vallen / @florianvallen

09/12/2017 at 06:11PM

21
#1747 - Daniel / @djacobs7

09/19/2017 at 07:53PM

21
#1748 - nico S / @der_nico_93

09/22/2017 at 10:13AM

21
#1749 - Bradley Bauer / @BradleyBauer7

09/29/2017 at 12:52PM

21
#1750 - Thomas Thornton / @tltjr

09/29/2017 at 05:15PM

21
#1751 - Michael Oberst / @MichaelOberst

10/01/2017 at 09:26PM

21
#1752 - NCRocks / @ncrocks

10/03/2017 at 08:59PM

21
#1753 - Zacharie Day / @richbaby420

10/12/2017 at 10:47PM

21
#1754 - Pierre Stévens / @pierre_stv

10/29/2017 at 03:06PM

21
#1755 - Thai Pangsakulyanont / @dtinth

10/29/2017 at 05:58PM

21
#1756 - Philipp Aeschbach / @ihbmifqerg

11/01/2017 at 04:38PM

21
#1757 - Pereant osores / @viniciusxp

12/05/2017 at 03:01AM

21
#1758 - Kyrylo Yakymenko / @Yakimych

12/07/2017 at 06:46PM

21
#1759 - Brian D / @bderrly

12/12/2017 at 11:02PM

21
#1760 - Bob Johnson / @BobJohn72127595

12/19/2017 at 12:49PM

21
#1761 - Entropitor / @entropitor

12/26/2017 at 01:14PM

21
#1762 - Mike Chen / @chagel

12/27/2017 at 02:15PM

21
#1763 - ben / @benb_123

01/09/2018 at 04:57AM

21
#1764 - Martin Skarzynski / @marskar

01/11/2018 at 04:23AM

21
#1765 - ArizonaPampa / @ArizonaPampa

01/17/2018 at 01:43PM

21
#1766 - kikov79 / @kikov79

01/18/2018 at 11:22PM

21
#1767 - Sebastian Wieland / @oktupol

01/19/2018 at 10:36AM

21
#1768 - Koudougou / @OpenPatate

01/19/2018 at 02:19PM

21
#1769 - eddie leon / @_eddie_leon

01/24/2018 at 10:18PM

21
#1770 - Jacob Tailor / @spydronex

01/25/2018 at 06:00PM