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

3882 active golfers, 18801 entries

Leaderboard (lowest score wins):
14
#751 - Vincent W / @ZoloowW

08/31/2022 at 09:09PM

14
#752 - Jui Ulhas Dakhave / @JuiDakhave

09/11/2022 at 08:24PM

14
#753 - Rohit Raut / @rohit_raut_18

09/25/2022 at 10:46PM

14
#754 - Janzen / @__Coos

10/01/2022 at 02:42PM

14
#755 - Noah Gordon / @bensbr0

01/02/2023 at 07:59AM

14
#756 - Andro / @sendtofaraway

02/26/2023 at 02:29AM

14
#757 - coffee-addict / @o0ff3e6ddict

05/17/2023 at 05:57AM

14
#758 - pacy.eth / @0xpacy

06/11/2023 at 05:15AM

14
#759 - vimmac / @vimmac13823

06/14/2023 at 08:58AM

14
#760 - Dionysus / @user101user

06/14/2023 at 10:46PM

14
#761 - くりち / 栗原佑弥 / @kurichi97

06/29/2023 at 11:54AM

14
#762 - theorem / @theorem

08/05/2023 at 01:53AM

14
#763 - Hans Wurscht / @HansW313

09/18/2023 at 10:05AM

14
#764 - Mohammad Apel Mahmod / @apel_mahmod

09/19/2023 at 06:37AM

14
#765 - levioneyh / @levioneyh

12/13/2023 at 09:06AM

14
#766 - shikitanrei / @shikitanrei

01/21/2024 at 07:45AM

14
#767 - zeptoterem / @zeta-omega-chi

06/15/2024 at 03:50AM

14
#768 - SanderHestvik / @SanderHestvik

06/15/2024 at 10:46PM

14
#769 - Yusei Ueno / @YuseiUeno

06/26/2024 at 07:51AM

14
#770 - Peppa Pig / @PeppaPigSg

07/17/2024 at 12:29AM

14
#771 - nickGPT / @nickandbro

08/28/2024 at 03:25AM

14
#772 - nkicher / @nkicher

11/20/2024 at 04:16AM

14
#773 - Demian Martinez / @demianuco

01/09/2025 at 07:25PM

14
#774 - Vsevolod Rychkov / @MadPigeon

04/30/2025 at 11:47AM

15
#775 - Piotr Walkusz / @piotrwalkusz1

08/11/2018 at 07:43PM

15
#776 - A E / @aechirps

09/11/2018 at 01:30AM

15
#777 - Robin De Mol / @RobinDeMol

09/14/2018 at 10:11AM

15
#778 - Vasil Mikhalenya / @bazillek

09/21/2018 at 07:30PM

15
#779 - Sebastian Korten / @FlashKorten

10/12/2018 at 04:28PM

15
#780 - Commi / @hellocommi

11/23/2018 at 07:29PM