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

247 active golfers, 1172 entries

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

03/24/2022 at 06:32PM

35
#>56 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:24PM

36
#>63 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:20PM

37
#>71 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:16PM

39
#>79 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:12PM

39
#>79 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:15PM

41
#>97 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:56PM

42
#>101 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:54PM

42
#>101 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:11PM

43
#>104 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:00PM

44
#>112 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:45PM

45
#>115 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:51PM

50
#>138 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:42PM

53
#>150 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:36PM

56
#>167 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:32PM

56
#>167 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:39PM

57
#>170 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:30PM

58
#>171 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:22PM

67
#>219 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:21PM

68
#>220 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 05:13PM