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

128 active golfers, 635 entries

Leaderboard (lowest score wins):
35
#31 - esquifit / @henroboke

07/13/2021 at 07:05AM

35
#32 - ゆに / @lededex

07/13/2021 at 05:44PM

35
#33 - Matrices Matlab #1 / @matrices_matlab

07/13/2021 at 06:22PM

35
#34 - Michael Carey / @Mick_Carey

08/05/2021 at 01:46PM

35
#35 - Baxter / @Baxter79512802

08/20/2021 at 12:38AM

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

08/25/2021 at 05:41AM

35
#37 - SwordSwordSwordBird / @SwordSwordBird

09/04/2021 at 05:41AM

35
#38 - Vahan / @Vahan00900245

10/05/2021 at 06:47PM

36
#39 - Sadot Cortés / @sadotsoy

07/27/2021 at 03:05AM

37
#40 - Winnie Yeung / @vionwinnie

07/01/2021 at 11:30PM

37
#41 - Ferran / @dillunsos

07/29/2021 at 12:20PM

37
#42 - ippachi / @ippachi1018

08/04/2021 at 11:56PM

37
#43 - Михаил Чупринский / @nelser_by

10/09/2021 at 08:01PM

37
#44 - migoo / @migoo00668679

10/11/2021 at 08:48AM

38
#45 - Anson Yeung / @ShadowAssassinC

07/16/2021 at 02:53PM

39
#46 - Ethan Rietz / @EthanRietz

06/29/2021 at 02:51AM

39
#47 - Romain Heller / @Rom1deTroyes

06/29/2021 at 10:24AM

39
#48 - vimgolf_vinz / @VimgolfV

09/20/2021 at 03:42PM

40
#49 - Felix Boers / @felixboers

07/06/2021 at 05:48PM

40
#50 - Manas / @weirdsmiley_

07/29/2021 at 09:41AM

40
#51 - Andreas Siegrist / @andreaszwei

10/03/2021 at 02:10PM

40
#52 - BryanYan / @BryanGoesPlaces

10/15/2021 at 05:29AM

41
#53 - mevmev / @mevmev8

07/21/2021 at 10:37PM

41
#54 - Jeff Cui / @jeffacce

07/24/2021 at 08:41AM

41
#55 - Herman Stavelin / @HsBruker

08/19/2021 at 10:56AM

43
#56 - Sergey Ryabko / @RyabkoSergey

07/08/2021 at 10:26AM

44
#57 - thevan96 / @thevan96gmailc1

07/26/2021 at 09:08AM

44
#58 - tpoeiras / @tpoeirass

07/31/2021 at 04:47AM

44
#59 - Kevin Ilphrin Pellet / @Kilphrin

08/04/2021 at 07:09AM

44
#60 - Tommy / @Tommy75962547

08/23/2021 at 10:57AM