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

3210 active golfers, 15216 entries

Leaderboard (lowest score wins):
19
#1381 - Karol / @kruzelecki

02/16/2017 at 12:29PM

19
#1382 - J / @Orsabon

02/19/2017 at 03:38AM

19
#1383 - Alexandre Jasmin / @ajasmin

02/19/2017 at 08:38AM

19
#1384 - Amber Chen / @AmberCh63187797

03/03/2017 at 03:00AM

19
#1385 - George / @Vge0rge

03/09/2017 at 11:31PM

19
#1386 - Eric Bakan / @ericbakan

03/14/2017 at 11:35PM

19
#1387 - Ilya Shakirov / @aelaau

03/20/2017 at 07:57AM

19
#1388 - JTR / @meDOT__name__

03/30/2017 at 02:00AM

19
#1389 - chamow / @sbakeugs

04/03/2017 at 01:52PM

19
#1390 - Миша Сорокин / @rafmikovi4

04/08/2017 at 08:27PM

19
#1391 - Reinaldo Astudillo / @astudillor

04/09/2017 at 10:27PM

19
#1392 - Pratik Prasad / @pratik

04/22/2017 at 02:22PM

19
#1393 - Igor Melnyk / @IrodrigesM

04/27/2017 at 07:59PM

19
#1394 - Dane Summers / @dsummersl

05/02/2017 at 04:12PM

19
#1395 - Mark Faga / @markjfaga

05/04/2017 at 03:36AM

19
#1396 - markschwarz / @markschwarz

05/08/2017 at 06:58PM

19
#1397 - Matthew Mongeau / @halogenandtoast

05/11/2017 at 09:10AM

19
#1398 - Hector Davensburg / @hdavensburg

05/13/2017 at 05:31PM

19
#1399 - thomas lo / @wagaiznogoud

05/17/2017 at 10:37PM

19
#1400 - squid / @zerosquid

05/27/2017 at 12:03AM

19
#1401 - だださω / @kdaiki211

06/07/2017 at 03:41PM

19
#1402 - .... / @coffman_r

06/07/2017 at 07:02PM

19
#1403 - Joseph Barratt / @josuf107

06/07/2017 at 07:54PM

19
#1404 - Adam Bozanich / @abozanich

06/08/2017 at 02:12AM

19
#1405 - Azzteroweed / @AzzTeroweed

06/11/2017 at 09:59PM

19
#1406 - James Bernsen / @jamesbernsen

06/12/2017 at 03:54PM

19
#1407 - Olmo Kramer / @olmokramer

06/12/2017 at 06:08PM

19
#1408 - Sebastián Etra / @EtraStyle

06/16/2017 at 05:52AM

19
#1409 - John Smith / @john828495

06/16/2017 at 01:37PM

19
#1410 - John Smith / @johns32768

06/16/2017 at 06:45PM