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
#1771 - Michael D Jones / @biotechjones

02/03/2018 at 09:19PM

21
#1772 - Saher El-Neklawy / @saherneklawy

02/05/2018 at 04:22PM

21
#1773 - Romain D. / @r_dulery

02/05/2018 at 07:28PM

21
#1774 - Veljko Dimic / @v2dimic

02/06/2018 at 07:47PM

21
#1775 - Erik Krane / @e__krane

02/06/2018 at 08:19PM

21
#1776 - Roger Spencer / @RojSpencer

02/06/2018 at 09:57PM

21
#1777 - ryu gosling / @bbbeloveddd

02/18/2018 at 07:05PM

21
#1778 - Jason Smythe / @JasoonSmythe

02/25/2018 at 09:48AM

21
#1779 - Klaus-Peter Schreiner / @KlaPeSch13

03/01/2018 at 12:46PM

21
#1780 - Meda Marisela / @LongbowMeda

03/09/2018 at 05:59AM

21
#1781 - odihat / @odihate

03/17/2018 at 04:45PM

21
#1782 - David / @Dave94_15

03/18/2018 at 06:34PM

21
#1783 - Jon Simpson / @NodeStreamer

03/21/2018 at 10:31PM

21
#1784 - johnkershaw / @johnkershaw

04/20/2018 at 04:06AM

21
#1785 - A. Grimprel / @AGrimprel

04/29/2018 at 03:08PM

21
#1786 - g5s6r2c4h / @g5forMallory

05/01/2018 at 12:35AM

21
#1787 - fdasfasfasga / @deteriorateredu

05/03/2018 at 09:36PM

21
#1788 - klaxalk / @klaxalk

05/09/2018 at 11:09AM

21
#1789 - Dennis Tang / @tangdennis

05/13/2018 at 07:20PM

21
#1790 - Patrick Haugh / @haughpj

05/15/2018 at 12:00AM

21
#1791 - golfal / @golfal2

05/27/2018 at 07:55AM

21
#1792 - chu zui / @chuzui7

05/29/2018 at 09:31AM

21
#1793 - Hampus Van E-A / @happyoccasion2

06/04/2018 at 08:06PM

21
#1794 - oracle / @oracle24986322

06/08/2018 at 05:57AM

21
#1795 - Victor Ashton / @victor_ashton

06/09/2018 at 06:40PM

21
#1796 - Chris Dean / @ChrisDe62379742

06/12/2018 at 02:13PM

21
#1797 - Christoph / @crrauch

06/18/2018 at 05:32PM

21
#1798 - mass / @mass256

07/06/2018 at 05:06AM

21
#1799 - Zak Wright / @TheZakWright

07/07/2018 at 03:35AM

21
#1800 - Jerry / @GarrisonwuJerry

07/13/2018 at 05:49PM