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

3467 active golfers, 16689 entries

Leaderboard (lowest score wins):
23
#2761 - Aleksa Zdravkovic / @zdravce98

06/04/2019 at 06:19PM

23
#2762 - notabot / @notabot84394972

06/04/2019 at 11:23PM

23
#2763 - Cookie4D / @Cookie4D1

06/06/2019 at 08:54PM

23
#2764 - うおお / @uoo38

06/07/2019 at 01:21AM

23
#2765 - Shyam Padia / @thegeektherapy

06/07/2019 at 11:26PM

23
#2766 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 12:50PM

23
#2767 - 𝕛𝕓𝕣𝕠𝕨𝕟 / @Roguelazer

06/12/2019 at 11:32PM

23
#2768 - deHman89 / @danho89

06/17/2019 at 01:38PM

23
#2769 - Egor Fedkin / @Jet_Flynn

06/25/2019 at 03:35PM

23
#2770 - kenneth foster / @kennethfoster12

06/30/2019 at 12:03AM

23
#2771 - Runze Xu / @xrz000

07/03/2019 at 05:39AM

23
#2772 - Floyd Gantt / @fgantt

07/12/2019 at 09:01PM

23
#2773 - Peter Meehan / @22A

07/27/2019 at 06:09PM

23
#2774 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/28/2019 at 06:30PM

23
#2775 - Himavanth Reddy / @Himavanth1909

07/29/2019 at 10:44AM

23
#2776 - Ron Holt / @ron_holt

07/30/2019 at 02:22AM

23
#2777 - majestic sloth / @SamLlama

08/07/2019 at 04:23AM

23
#2778 - Nicolas 👨‍💻🇨🇦 / @martinni39

08/09/2019 at 06:19PM

23
#2779 - Luiz Eduardo Amaral / @_luxedo

08/13/2019 at 04:14PM

23
#2780 - 浚宇 / @Junyu_Wang_cn

08/14/2019 at 03:37PM

23
#2781 - vim_ninja / @NinjaVim

08/19/2019 at 03:40AM

23
#2782 - Stefan Krist / @nerdyness_sk

08/20/2019 at 08:24PM

23
#2783 - David / @davidrapsey

08/20/2019 at 10:54PM

23
#2784 - ARK / @ARK69712394

08/27/2019 at 02:54PM

23
#2785 - chriscian / @christianfarani

08/31/2019 at 03:39AM

23
#2786 - Iggy / @iggredible

09/06/2019 at 02:20AM

23
#2787 - ░C░o░o░p░e░r░ ░L░u░c░e░ / @16cluce

09/06/2019 at 03:41PM

23
#2788 - Gammelin Guillaume / @ggammelin

09/18/2019 at 09:29AM

23
#2789 - Ollin Boer Bohan / @madebyollin

09/24/2019 at 09:48PM

23
#2790 - brypto / @hiimbenjy

09/30/2019 at 04:35AM