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

327 active golfers, 1539 entries

Leaderboard (lowest score wins):
41
#121 - mevmev / @mevmev8

07/21/2021 at 10:37PM

41
#122 - Jeff Cui / @jeffacce

07/24/2021 at 08:41AM

41
#123 - Herman Stavelin / @HsBruker

08/19/2021 at 10:56AM

41
#124 - Patrick Rainey / @PatrickJRainey

11/18/2021 at 11:26AM

41
#125 - $HA-|| / @s_k0731

11/30/2021 at 05:46PM

41
#126 - José Medrano / @happylilmexican

12/06/2021 at 09:06PM

41
#127 - stwice / @stwice

02/06/2022 at 05:54PM

41
#128 - Даня Ефимов / @Abberatus

02/14/2022 at 07:49PM

41
#129 - Mrmclarrinson / @mrmclarrinson

12/12/2022 at 11:32AM

41
#130 - Eugene Yalansky / @EugeneYalansky

06/21/2023 at 03:38AM

41
#131 - b1gz / @_b1gz

07/31/2023 at 10:16PM

41
#132 - مرجان / @IEnfantTerribIe

08/03/2023 at 03:00PM

41
#133 - Danny Iachini / @diachini

11/10/2023 at 09:24PM

42
#134 - thari.eth / @thari_eth

11/11/2021 at 03:56PM

42
#135 - POSIX / @po6ix

01/07/2022 at 02:59AM

42
#136 - eastarpen / @eastarpen

02/28/2022 at 07:13AM

42
#137 - tuck / @19emtuck

03/16/2022 at 02:18PM

42
#138 - NOT_FOR_TWEETS / @_NOTIMPLEMENTED

05/03/2023 at 11:55AM

42
#139 - George Angelopoulos / @gangelop

02/17/2024 at 06:55AM

43
#140 - Sergey Ryabko / @sergey_ryabko

07/08/2021 at 10:26AM

43
#141 - Алексей Иванин / @AliakseiIvanin

11/10/2021 at 09:08AM

43
#142 - Milovan Zogovic / @zogash

11/19/2021 at 03:03PM

43
#143 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/26/2022 at 11:46AM

43
#144 - Karan / @Karan22350073

09/30/2022 at 04:35PM

43
#145 - Test Subject / @TestSub10347886

12/09/2022 at 09:09PM

43
#146 - RosaTryp / @RosaTryp

06/08/2023 at 04:06PM

44
#147 - thevan96 / @thevan96gmailc1

07/26/2021 at 09:08AM

44
#148 - tpoeiras / @tpoeirass

07/31/2021 at 04:47AM

44
#149 - Kevin Ilphrin Pellet / @Kilphrin

08/04/2021 at 07:09AM

44
#150 - Tommy / @Tommy75962547

08/23/2021 at 10:57AM