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

238 active golfers, 1127 entries

Leaderboard (lowest score wins):
67
#211 - Rory Smith / @alan0buchanan

09/14/2021 at 09:14PM

68
#212 - ココアサ / @zAxLcKjTWc6aP6P

12/04/2021 at 03:31AM

69
#213 - 4PhysiX / @4_physi

07/09/2021 at 10:25PM

70
#214 - Simon / @mopsdiv

11/07/2021 at 06:06PM

72
#215 - Ксения / @Xvluk

08/16/2021 at 09:33PM

72
#216 - JahmannDev / @JahmannD

09/15/2021 at 11:57PM

74
#217 - SaltyAom / @saltyAom

03/02/2022 at 03:56PM

74
#218 - Naughty Noodle / @NaughtyyNoodle

03/10/2022 at 12:36AM

76
#219 - good enough ; 🌿 / @daisyymint

03/03/2022 at 02:29PM

77
#220 - Gustavo Adolfo Mejía / @im_tavo

07/20/2021 at 04:49PM

80
#221 - Danny / @dannywood1976

07/28/2021 at 12:31PM

81
#222 - guimorg / @guimorg1

12/09/2021 at 12:01AM

85
#223 - imnottheonlyspy / @imnottheonlyspy

07/01/2021 at 09:51PM

88
#224 - sami belattar / @belattar_sami

07/22/2021 at 04:07PM

95
#225 - Adam Ma / @6i9Bz4gMtVSByjj

08/08/2021 at 11:57AM

95
#226 - Jose Javier Gonzalez / @jjgort

08/11/2021 at 04:12PM

102
#227 - panakin skywalker / @_j3ffrey

08/31/2021 at 02:43PM

104
#228 - ccn / @ccn24943163

07/13/2021 at 02:50AM

106
#229 - tarotbybye / @tarotbybyeart

03/02/2022 at 02:40PM

107
#230 - 🇮🇳 Prax 🏳️‍🌈 / @Praxks

07/18/2021 at 08:45PM

116
#231 - วทททท / @uhTOWreLzQy0JN5

03/02/2022 at 01:45PM

117
#232 - pankace / @pankace_Frosted

03/02/2022 at 05:01PM

122
#233 - Thitichote Chaimuang / @ThitichoteC

03/02/2022 at 05:26PM

129
#234 - oleg / @oleg12573505

01/29/2022 at 03:09PM

139
#235 - dog / @coldplayingsong

10/29/2021 at 05:32PM

144
#236 - vineet / @vineet38383726

09/01/2021 at 03:20PM

167
#237 - John Wohlfert / @jlwohlfert

11/28/2021 at 03:49AM

181
#238 - Calarasanu Andrei / @_fanfani4_

06/29/2021 at 09:01AM