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

2883 active golfers, 13373 entries

Leaderboard (lowest score wins):
21
#1801 - Camron Flanders / @camflan

07/12/2017 at 04:31AM

21
#1802 - apartment1812 / @apartment18121

07/14/2017 at 12:28AM

21
#1803 - Patrick Sanan / @patricksanan

07/21/2017 at 03:50PM

21
#1804 - Jonathan Eidsness / @jonathaneidsnes

07/24/2017 at 08:13PM

21
#1805 - adeel hussain / @adeelhussain

07/28/2017 at 10:56AM

21
#1806 - Johan Bleuzen / @jBleuzen

07/28/2017 at 02:48PM

21
#1807 - yaboo / @www_yaboo_co_jp

08/07/2017 at 10:09AM

21
#1808 - guilherme / @guireisc

08/08/2017 at 10:43AM

21
#1809 - Igor Sowinski / @IgorSowinski

08/16/2017 at 04:36PM

21
#1810 - Cyrus Nikolaidis / @CyrusNikolaidis

08/20/2017 at 03:22AM

21
#1811 - DJ Martin / @DeeJay_Wins

08/23/2017 at 09:25PM

21
#1812 - Jason / @linlin110

08/24/2017 at 01:09AM

21
#1813 - Kevin Ly / @kevinnnly

08/25/2017 at 07:14PM

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

09/05/2017 at 04:47AM

21
#1815 - Alexander Bushkovsky / @teplolog

09/06/2017 at 08:58PM

21
#1816 - steph / @brittiskt

09/08/2017 at 01:16PM

21
#1817 - Florian Vallen / @florianvallen

09/12/2017 at 06:11PM

21
#1818 - Daniel / @djacobs7

09/19/2017 at 07:53PM

21
#1819 - nico S / @der_nico_93

09/22/2017 at 10:13AM

21
#1820 - Bradley Bauer / @BradleyBauer7

09/29/2017 at 12:52PM

21
#1821 - Thomas Thornton / @tltjr

09/29/2017 at 05:15PM

21
#1822 - Michael Oberst / @MichaelOberst

10/01/2017 at 09:26PM

21
#1823 - NCRocks / @ncrocks

10/03/2017 at 08:59PM

21
#1824 - Zacharie Day / @richbaby420

10/12/2017 at 10:47PM

21
#1825 - Pierre Stévens / @pierre_stv

10/29/2017 at 03:06PM

21
#1826 - Thai Pangsakulyanont / @dtinth

10/29/2017 at 05:58PM

21
#1827 - Philipp Aeschbach / @ihbmifqerg

11/01/2017 at 04:38PM

21
#1828 - Pereant osores / @viniciusxp

12/05/2017 at 03:01AM

21
#1829 - Kyrylo Yakymenko / @Yakimych

12/07/2017 at 06:46PM

21
#1830 - Brian D / @bderrly

12/12/2017 at 11:02PM