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 3877 remaining solutions by signing in and submitting your own entry
#3878 ν˜Έλ„λ₯΄ / @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

3878 active golfers, 18784 entries

Leaderboard (lowest score wins):
15
#811 - perTheGolfer / @GolferPer

02/17/2020 at 05:03PM

15
#812 - Ard / @kokojarjar

02/18/2020 at 11:53AM

15
#813 - Strages / @Strages2k

02/23/2020 at 12:12AM

15
#814 - floyd / @floyd10086

02/27/2020 at 05:29AM

15
#815 - Nathan Hartman / @hnathan918

04/01/2020 at 10:31PM

15
#816 - The Legy / @thelegy

04/24/2020 at 12:12AM

15
#817 - Anay Karnik / @anay_karnik

05/08/2020 at 12:58PM

15
#818 - Neil Earnshaw / @neilearnshaw

05/08/2020 at 02:16PM

15
#819 - iBhagwan / @iiBhagwan

05/11/2020 at 02:58AM

15
#820 - Sven KΓ΅iv / @KoivSven

05/17/2020 at 10:07AM

15
#821 - 𝓂𝒿𝓇 βˆ‹ ℝ / @real_mjr

05/26/2020 at 01:17PM

15
#822 - JLObject / @powful_panda

07/01/2020 at 06:39PM

15
#823 - Alexandre MERLIN / @AlxMerlin

07/02/2020 at 05:18PM

15
#824 - Josh Kermond / @Kermond

08/23/2020 at 06:22AM

15
#825 - Romeo Valentin / @Seecez

08/25/2020 at 01:21PM

15
#826 - Marcio M Pereira / @iviarcio

09/02/2020 at 11:00AM

15
#827 - RaylanFox / @RaylanFox

10/04/2020 at 07:42AM

15
#828 - Brad Hubbard / @BradHubbard19

10/06/2020 at 06:48AM

15
#829 - Andreas Siegrist / @andreaszwei

11/15/2020 at 10:38PM

15
#830 - μ˜ν›ˆ / @odjfnrtm

12/19/2020 at 02:22AM

15
#831 - Ray Dennis / @raysden

12/23/2020 at 07:59PM

15
#832 - this is for vim golf / @Dis4VimGolf

01/14/2021 at 11:20PM

15
#833 - fedja golf / @fedjagolf

01/15/2021 at 10:50PM

15
#834 - WladDalwM / @WladDalwM

03/04/2021 at 08:07PM

15
#835 - wpr__ / @wpr____

07/30/2021 at 10:46PM

15
#836 - Youssef Magdy / @youssef_magdy29

04/30/2022 at 10:42PM

15
#837 - woodspock / @woodspock

01/16/2023 at 09:26AM

15
#838 - fbuntara002 / @fbuntara002

06/18/2024 at 06:37PM

16
#839 - Saki Gw / @Sakigw

03/31/2016 at 03:59PM

16
#840 - matthieu le grix / @mlegrix

05/01/2016 at 01:09PM