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 by @AnthonyAsp3:

Unlock 20 remaining solutions by signing in and submitting your own entry
Created by: @AWhiteDwarf1

334 active golfers, 1567 entries

Solutions by @AnthonyAsp3:
34
#35 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:32PM

35
#>72 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:24PM

36
#>86 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:20PM

37
#>96 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:16PM

39
#>109 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:12PM

39
#>109 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:15PM

41
#>130 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:56PM

42
#>139 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:54PM

42
#>139 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:11PM

43
#>144 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:00PM

44
#>157 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:45PM

45
#>164 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:51PM

50
#>198 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:42PM

53
#>215 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:36PM

56
#>232 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:32PM

56
#>232 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:39PM

57
#>236 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:30PM

58
#>238 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:22PM

67
#>298 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:21PM

68
#>299 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:13PM