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

305 active golfers, 1431 entries

Leaderboard (lowest score wins):
61
#241 - Brendan Holmes / @bdholmes

02/02/2022 at 10:18PM

61
#242 - Zhou Jiazheng / @ZhouJiazheng0

02/21/2023 at 09:22AM

62
#243 - Babil G. Sarwar / @gsbabil

08/16/2021 at 11:31AM

62
#244 - Volatus / @MasterVolatus

09/18/2021 at 09:39PM

62
#245 - Snurli / @Snurlipus

11/20/2021 at 03:39PM

62
#246 - Nils Melchert / @NilsMelchert

03/15/2022 at 08:52AM

62
#247 - 강태화 / @kangtaehwa1234

03/18/2022 at 08:28AM

62
#248 - Kwizer / @kwizer

05/29/2022 at 10:39AM

62
#249 - Simon Carrignon / @SimonCarrignon

12/01/2022 at 05:29PM

63
#250 - James Troeth / @Troffy78

07/11/2021 at 09:44AM

63
#251 - Armand Coretchi / @armandcoretchi_

08/13/2021 at 03:17PM

63
#252 - Jason Kuan | jasonkuan.eth / @Jason9075Kuan

04/11/2022 at 03:03AM

63
#253 - 李建宏 / @xx19971016

09/01/2023 at 08:02AM

64
#254 - Daniel / @DClementePoker

07/22/2021 at 02:47PM

64
#255 - samodostal / @samodostal

08/02/2021 at 12:30PM

64
#256 - Abhishek Sriraman / @asriraman

04/15/2022 at 02:01AM

65
#257 - Sylvain Dangin / @Sylvaner03

06/29/2021 at 08:19PM

65
#258 - HotSixRedBull / @AlanSerpente

07/15/2021 at 09:49AM

65
#259 - Devan / @DevAndersen

08/11/2021 at 04:16AM

65
#260 - Ochirsum / @Ochirsum11

08/11/2021 at 01:08PM

65
#261 - 윤경호 / @GH_Yun2

12/05/2021 at 01:19PM

65
#262 - Ken / @kenc_

01/20/2022 at 05:24AM

66
#263 - Cameron Cordes / @cameron_cordes

07/13/2021 at 11:52PM

66
#264 - Yondonjamts Ganzorig / @yondonjamts_g

07/24/2021 at 07:38AM

66
#265 - François / @mortyZZ

08/06/2021 at 09:21PM

66
#266 - Bspammer / @Bspammer

08/14/2021 at 01:04AM

66
#267 - Joey Schmoey / @joeshmow80

02/22/2022 at 02:38AM

66
#268 - แฟน___คนโปรด / @WannaPlayGame_

03/03/2022 at 01:08AM

66
#269 - fredy / @locked_outside

01/25/2023 at 11:29PM

67
#270 - vimgolfacc / @vimgolfacc2

06/29/2021 at 02:32PM