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 9v0060da5177000000000209

Plotting some variables in python

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

Start file
def Plot_All():
    plt.plot(x1,y1,color='k',lw=0.8,label="line #1")
    plt.plot(x1,y1,color='k',lw=0.8,label="line #1")
    plt.plot(x1,y1,color='k',lw=0.8,label="line #1")
    plt.plot(x1,y1,color='k',lw=0.8,label="line #1")
End file
def Plot_All():
    plt.plot(x1,abs(y1),color='k',lw=0.8,label="line #1")
    plt.plot(x2,abs(y2),color='b',lw=0.8,label="line #2")
    plt.plot(x3,abs(y3),color='r',lw=0.8,label="line #3")
    plt.plot(x4,abs(y4),color='g',lw=0.8,label="line #4")

View Diff

2,5c2,5
<     plt.plot(x1,y1,color='k',lw=0.8,label="line #1")
<     plt.plot(x1,y1,color='k',lw=0.8,label="line #1")
<     plt.plot(x1,y1,color='k',lw=0.8,label="line #1")
<     plt.plot(x1,y1,color='k',lw=0.8,label="line #1")
---
>     plt.plot(x1,abs(y1),color='k',lw=0.8,label="line #1")
>     plt.plot(x2,abs(y2),color='b',lw=0.8,label="line #2")
>     plt.plot(x3,abs(y3),color='r',lw=0.8,label="line #3")
>     plt.plot(x4,abs(y4),color='g',lw=0.8,label="line #4")

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 236 remaining solutions by signing in and submitting your own entry
#237 Calarasanu Andrei / @_fanfani4_ - Score: 181 - 06/29/21 @ 09:01
jfy<C-V>4jIabs(<Esc>[1;5C<Esc>u<Esc>w)bBBkkkwwwwwwwww)(jf,f,i)<Esc>j<C-A>bbbbbbbi<BS>2)<Esc>ji<BS>3)<Esc>ji<BS>4)<Esc>bbbbkkk<C-A>bbbb<C-A>bbbb<C-X>bbbbb<C-A>jkuj<C-A>jb<C-A><C-A>bj<C-A><C-A><C-A>$<Left><BS>4a<BS>4<Up><BS>3<Up><BS>2<Esc>:wq<Esc><Esc>k0fya<Del>1<Esc>f;'<Esc>f'ja<Del>b<Down><BS>r<Down><BS>g<Esc>:wq<Esc>2kwwww<Del>0<Esc><Esc><Esc>f.f.i0<Esc>:wq<CR>

0 comments


Created by: @AWhiteDwarf1

237 active golfers, 1119 entries

Leaderboard (lowest score wins):
34
#31 - ys / @SYS_0704

12/05/2021 at 07:36AM

34
#32 - ややお / @yayaoh

12/21/2021 at 09:39AM

34
#33 - blub blub / @xyDZdMNGzWLT

02/10/2022 at 12:01AM

34
#34 - タナイ / @okinawa__noodle

03/12/2022 at 06:14AM

34
#35 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:32PM

34
#36 - Pedro Minicz / @pedrominicz

03/26/2022 at 12:47AM

34
#37 - unchi / @unchi10723002

05/08/2022 at 06:53AM

35
#38 - iBhagwan / @iiBhagwan

06/30/2021 at 03:30AM

35
#39 - Georg Bökman / @BokmanGeorg

07/06/2021 at 12:30PM

35
#40 - esquifit / @henroboke

07/13/2021 at 07:05AM

35
#41 - ゆに / @lededex

07/13/2021 at 05:44PM

35
#42 - Matrices Matlab #1 / @matrices_matlab

07/13/2021 at 06:22PM

35
#43 - Michael Carey / @Mick_Carey

08/05/2021 at 01:46PM

35
#44 - Baxter / @Baxter79512802

08/20/2021 at 12:38AM

35
#45 - まじで≡すごい(mod🌗) / @i_wanna_be_a_jk

08/25/2021 at 05:41AM

35
#46 - SwordSwordSwordBird / @SwordSwordBird

09/04/2021 at 05:41AM

35
#47 - Vahan / @Vahan00900245

10/05/2021 at 06:47PM

35
#48 - 박세영 / @bagseyeong10

11/26/2021 at 01:28PM

35
#49 - 深窓の令嬢@百合厨 / @arbino1031

11/28/2021 at 02:01PM

35
#50 - ししぃ / @ShunIsii

12/23/2021 at 06:46AM

35
#51 - Jianfeng / @Jianfen22425058

12/24/2021 at 02:30AM

35
#52 - 勉强掩盖 / @NROOhu88PhVQYLT

01/12/2022 at 11:36AM

35
#53 - Ramtin Martin / @martin_ramtin

03/23/2022 at 02:33PM

35
#54 - John Xu / @xzzhiao

04/06/2022 at 04:34PM

35
#55 - ._. / @Katharsic

04/24/2022 at 07:18AM

35
#56 - Youssef Magdy / @youssef_magdy29

04/29/2022 at 01:05AM

36
#57 - Sadot Cortés / @sadotsoy

07/27/2021 at 03:05AM

36
#58 - Humbaba / @humbabu

12/31/2021 at 09:22PM

36
#59 - Sammit / @somemeatjain

01/24/2022 at 05:45PM

36
#60 - chamow / @sbakeugs

04/13/2022 at 08:03PM