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):
34
#31 - ys / @SYS_0704

12/05/2021 at 07:36AM

34
#32 - ややお / @yayaoh

12/21/2021 at 09:39AM

34
#33 - blub blub / @xyDZdMNGzWLT

02/10/2022 at 12:01AM

34
#34 - タナイ / @okinawa__noodle

03/12/2022 at 06:14AM

34
#35 - Anthony Asp / @AnthonyAsp3

03/24/2022 at 06:32PM

34
#36 - Pedro Minicz / @pedrominicz

03/26/2022 at 12:47AM

34
#37 - unchi / @unchi10723002

05/08/2022 at 06:53AM

34
#38 - russellzhaomao / @russellzhaomao

05/22/2022 at 08:08AM

34
#39 - redbigyesnoGoThenWhy / @redbigyesno

05/30/2022 at 01:45PM

34
#40 - ShookerAndBeta / @Shooker2012

06/09/2022 at 03:47AM

34
#41 - Александр Черенков / @AleksandrCeren3

07/28/2022 at 04:04AM

34
#42 - Janzen / @__Coos

09/13/2022 at 08:25AM

34
#43 - Omar Alawadhi / @OmarAla59544225

09/16/2022 at 10:16PM

34
#44 - 刘宏亮 / @AkeyCoy

09/26/2022 at 01:50AM

34
#45 - Topvimgolf Score / @topvimgolfscore

10/15/2022 at 01:16PM

34
#46 - Alex Lewin / @_AlexLewin

02/17/2023 at 07:01AM

34
#47 - 黄高昂 / @suewiq

03/02/2023 at 05:12AM

34
#48 - Duncan / @Duncan31503119

05/30/2023 at 01:14AM

34
#49 - Игорь Квачёнок / @IKvacenok

06/02/2023 at 03:04PM

34
#50 - scpchicken / @scpchick

10/17/2023 at 08:54PM

34
#51 - 7733865@qq.com / @tjxwg

10/18/2023 at 02:21PM

34
#52 - Vimgolf User / @VimgolfU

10/23/2023 at 03:04PM

34
#53 - Seok Hwan Kim / @gworldkim

10/24/2023 at 02:41PM

34
#54 - tien / @tien40766111

11/17/2023 at 12:15PM

34
#55 - MonkieeBoi / @MonkieeBoi

11/22/2023 at 06:16AM

34
#56 - Aly Thobani / @alythobani

04/07/2024 at 08:41PM

34
#57 - Paul Molloy / @paulsmolloy

05/05/2024 at 11:07AM

35
#58 - iBhagwan / @iiBhagwan

06/30/2021 at 03:30AM

35
#59 - Georg Bökman / @BokmanGeorg

07/06/2021 at 12:30PM

35
#60 - esquifit / @henroboke

07/13/2021 at 07:05AM