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 273 remaining solutions by signing in and submitting your own entry
#274 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

274 active golfers, 1283 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

34
#38 - russellzhaomao / @russellzhaomao

05/22/2022 at 08:08AM

34
#39 - redbigyesnoGoThenWhy / @redbigyesno

05/30/2022 at 01:45PM

34
#40 - ShookerAndBeta / @Shooker2012

06/09/2022 at 03:47AM

34
#41 - Александр Черенков / @AleksandrCeren3

07/28/2022 at 04:04AM

34
#42 - Janzen / @__Coos

09/13/2022 at 08:25AM

34
#43 - Omar Alawadhi / @OmarAla59544225

09/16/2022 at 10:16PM

34
#44 - 刘宏亮 / @AkeyCoy

09/26/2022 at 01:50AM

34
#45 - Topvimgolf Score / @topvimgolfscore

10/15/2022 at 01:16PM

35
#46 - iBhagwan / @iiBhagwan

06/30/2021 at 03:30AM

35
#47 - Georg Bökman / @BokmanGeorg

07/06/2021 at 12:30PM

35
#48 - esquifit / @henroboke

07/13/2021 at 07:05AM

35
#49 - ゆに / @lededex

07/13/2021 at 05:44PM

35
#50 - Matrices Matlab #1 / @matrices_matlab

07/13/2021 at 06:22PM

35
#51 - Michael Carey / @Mick_Carey

08/05/2021 at 01:46PM

35
#52 - Baxter / @Baxter79512802

08/20/2021 at 12:38AM

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

08/25/2021 at 05:41AM

35
#54 - SwordSwordSwordBird / @SwordSwordBird

09/04/2021 at 05:41AM

35
#55 - Vahan / @Vahan00900245

10/05/2021 at 06:47PM

35
#56 - 박세영 / @bagseyeong10

11/26/2021 at 01:28PM

35
#57 - 深窓の令嬢@ドクター / @arbino1031

11/28/2021 at 02:01PM

35
#58 - ししぃ / @ShunIsii

12/23/2021 at 06:46AM

35
#59 - Jianfeng / @Jianfen22425058

12/24/2021 at 02:30AM

35
#60 - 勉强掩盖 / @NROOhu88PhVQYLT

01/12/2022 at 11:36AM