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
#1831 - churaki / @churaki

01/24/2019 at 01:36PM

21
#1832 - Thomas Branch / @twighk

01/27/2019 at 01:06PM

21
#1833 - Filipe Brandenburger / @filbranden

02/17/2019 at 08:14AM

21
#1834 - Thilo Rörig / @scholith

02/21/2019 at 09:15PM

21
#1835 - Sam Weitzman / @weitzman_sam

03/02/2019 at 08:43PM

21
#1836 - vince / @vincentvangott

03/02/2019 at 10:40PM

21
#1837 - DanSnow / @dododavid006

03/06/2019 at 02:20AM

21
#1838 - Tom Szyszko / @DaPolishMafia01

03/15/2019 at 07:50PM

21
#1839 - Matteo / @Matteo_Mer

04/04/2019 at 10:58PM

21
#1840 - arsi arola / @mos_kiitto

05/15/2019 at 02:16PM

21
#1841 - Ralf Brunckhorst / @ralfbrunck

05/29/2019 at 08:03AM

21
#1842 - Arthamys / @arthamys

06/03/2019 at 11:49AM

21
#1843 - Miles Edland / @ShutUpMiles

06/06/2019 at 07:15AM

21
#1844 - Ninja Knife / @iNinjaknife

06/09/2019 at 10:49AM

21
#1845 - Hans Aschenloher / @aschenloher

06/12/2019 at 07:59AM

21
#1846 - Reportados123 / @reportados123

06/13/2019 at 02:26PM

21
#1847 - Johannes / @joka253

06/24/2019 at 08:43AM

21
#1848 - Aurel / @AurelienFebvre

06/24/2019 at 07:33PM

21
#1849 - Clarence Cheong / @IBrightStudioI

07/10/2019 at 04:14AM

21
#1850 - Eden / @Eden93974445

07/12/2019 at 02:27AM

21
#1851 - r / @nameequalsmain

07/16/2019 at 12:22PM

21
#1852 - Renato Müller Rosa / @ItsmeGordo

07/16/2019 at 04:06PM

22
#1853 - Chenut Ludovic / @7Brwa7

03/30/2016 at 05:42PM

22
#1854 - Robber Toe / @robbertoe

04/01/2016 at 12:05AM

22
#1855 - David Millman / @dlmillman

04/04/2016 at 04:00AM

22
#1856 - Jacob Degeling / @JacobDegeling

04/05/2016 at 03:05AM

22
#1857 - yusukesasaki / @yysaki

04/13/2016 at 02:23PM

22
#1858 - HypoTech / @Obongoetco

04/15/2016 at 01:29PM

22
#1859 - DJ Madeira / @dj_madeira

04/19/2016 at 02:42PM

22
#1860 - Daniel Burnett / @mango_cheetah

04/22/2016 at 10:22PM