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

342 active golfers, 1597 entries

Leaderboard (lowest score wins):
66
#301 - แฟน___คนโปรด / @WannaPlayGame_

03/03/2022 at 01:08AM

66
#302 - fredy / @locked_outside

01/25/2023 at 11:29PM

67
#303 - vimgolfacc / @vimgolfacc2

06/29/2021 at 02:32PM

67
#304 - Rory Smith / @alan0buchanan

09/14/2021 at 09:14PM

68
#305 - ココアサ / @zAxLcKjTWc6aP6P

12/04/2021 at 03:31AM

69
#306 - 4PhysiX / @4_physi

07/09/2021 at 10:25PM

70
#307 - Simon / @mopsdiv

11/07/2021 at 06:06PM

71
#308 - constap / @constap

04/18/2024 at 11:00PM

71
#309 - Jeff Arese / @jeffarese

05/27/2024 at 07:25PM

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

08/16/2021 at 09:33PM

72
#311 - JahmannDev / @JahmannD

09/15/2021 at 11:57PM

74
#312 - SaltyAom / @saltyAom

03/02/2022 at 03:56PM

74
#313 - Noodle / @NaughtyyNoodle

03/10/2022 at 12:36AM

74
#314 - Abhijeet Bodas / @apbodas

11/01/2022 at 08:51AM

76
#315 - good enough ; 🌿 / @daisyymint

03/03/2022 at 02:29PM

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

07/20/2021 at 04:49PM

80
#317 - Danny / @dannywood1976

07/28/2021 at 12:31PM

81
#318 - guimorg / @guimorg1

12/09/2021 at 12:01AM

85
#319 - imnottheonlyspy / @imnottheonlyspy

07/01/2021 at 09:51PM

85
#320 - Tolp En / @en_tolp

11/22/2022 at 07:13PM

85
#321 - Benjamin / @BenjaminBashar

02/12/2023 at 10:54PM

85
#322 - Zhuo Zhang / @zchrissirhcz

01/05/2024 at 03:08PM

88
#323 - sami belattar / @belattar_sami

07/22/2021 at 04:07PM

90
#324 - harish dudi / @harishd91170803

02/02/2023 at 03:28PM

95
#325 - Adam Ma / @6i9Bz4gMtVSByjj

08/08/2021 at 11:57AM

95
#326 - Jose Javier Gonzalez / @jjgort

08/11/2021 at 04:12PM

99
#327 - K.Takao / @kit_tko

09/16/2022 at 02:20PM

102
#328 - panakin skywalker / @_j3ffrey

08/31/2021 at 02:43PM

102
#329 - D G G / @DGJourneyman

02/21/2023 at 05:54AM

104
#330 - ccn / @ccn24943163

07/13/2021 at 02:50AM