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
#1801 - Dylan Waits / @pianoman320

07/14/2018 at 11:55PM

21
#1802 - buz / @buzbone

07/16/2018 at 09:05PM

21
#1803 - Ragnar Hardarson / @ragnar_ha

07/20/2018 at 08:12AM

21
#1804 - 길동수 / @23BqpItUAEonueU

07/27/2018 at 07:22AM

21
#1805 - Jack Magnus / @jadomag

08/04/2018 at 06:14PM

21
#1806 - Poulpatine / @Poulpe_Py

08/11/2018 at 09:45AM

21
#1807 - Marco Magdy / @marcomacdee

08/13/2018 at 11:17PM

21
#1808 - Charles Sun / @charles_sun90

08/16/2018 at 05:23PM

21
#1809 - 村橋究理基M.Kuriki@北大 / @mkuriki_

08/17/2018 at 01:34PM

21
#1810 - Viktor Voronin / @voroninman

08/22/2018 at 09:27AM

21
#1811 - Ryan Daniels / @RyanNeilDaniels

08/28/2018 at 09:03AM

21
#1812 - Developer Desmond / @DeveloperDez

09/12/2018 at 03:30AM

21
#1813 - gsvba / @gsvba

09/18/2018 at 10:13PM

21
#1814 - yachi / @yaachi

09/19/2018 at 07:14AM

21
#1815 - Mort Rainey / @arch_midnight

09/22/2018 at 07:06PM

21
#1816 - nobody that important / @nobodythatimpo2

10/08/2018 at 04:02AM

21
#1817 - Juan / @jubujjamer

10/15/2018 at 07:42PM

21
#1818 - Aubrey Lavigne / @AubreySLavigne

10/20/2018 at 08:00AM

21
#1819 - Pak Wing / @_Pak_Wing_

10/25/2018 at 01:34PM

21
#1820 - Why Am / @WhysDeCatOnFire

11/07/2018 at 04:52PM

21
#1821 - Zenghanzhang / @hzengroger

11/10/2018 at 06:24AM

21
#1822 - steve N ӾlvЮ / @xlvio

11/13/2018 at 08:42PM

21
#1823 - Levi Self / @LeviRSelf

11/18/2018 at 06:16AM

21
#1824 - unclewangshushu / @shuwushu

11/29/2018 at 06:05AM

21
#1825 - Jacky Tian / @xjtian

11/29/2018 at 06:24AM

21
#1826 - Eluded7 / @Eluded71

12/19/2018 at 05:58PM

21
#1827 - TimMcGuire / @mcguire

12/22/2018 at 09:06PM

21
#1828 - Jasper Pangilinan / @JasperP

12/24/2018 at 12:12AM

21
#1829 - sstar / @sstar60015687

12/26/2018 at 09:34AM

21
#1830 - Jonny Wilson / @thejondom

12/27/2018 at 06:46PM