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

279 active golfers, 1321 entries

Leaderboard (lowest score wins):
48
#151 - Ryan Murphy / @RyanMur03026891

05/10/2022 at 11:46PM

48
#152 - Driver / @zhouyijiaren

06/11/2022 at 12:49PM

49
#153 - drumstix576 / @drumstix576

10/10/2021 at 10:33AM

49
#154 - literally a 🐝 / @abbie_is_here

10/29/2021 at 03:25PM

49
#155 - Jakob k. Hansen / @JakobkHansen1

04/17/2022 at 07:42PM

49
#156 - Sarang Khim / @sarang_khim

07/27/2022 at 08:37AM

49
#157 - 语冰者 / @darcysail

08/18/2022 at 04:59PM

50
#158 - MrRubiksSC / @RubiksSc

08/14/2021 at 02:02PM

50
#159 - Curtis Ault / @Curtis_Ault

03/18/2022 at 08:26PM

50
#160 - Henry Chimpden Earwicker / @HChEarwicker

06/14/2022 at 06:15AM

50
#161 - JWei / @JWei9

07/18/2022 at 02:41PM

50
#162 - Bas / @m1tix

09/23/2022 at 03:15PM

50
#163 - Chris Conte / @chriscconte

12/06/2022 at 10:49PM

50
#164 - Alexander Morozov / @scanhex

12/07/2022 at 09:00PM

51
#165 - editor3D / @editor3D

07/13/2021 at 04:23PM

51
#166 - Michel Desjardins / @M8_Ofthegarden

08/10/2021 at 11:51PM

51
#167 - Laurent Isenegger / @lisenegger

03/23/2022 at 03:51PM

51
#168 - タケ / @Take3832

04/23/2022 at 03:21PM

52
#169 - Un Extraño / @link145m

07/30/2021 at 11:22PM

52
#170 - Connor / @ronnocthered

08/15/2021 at 04:12AM

52
#171 - ya-suke / @ninja__01

02/09/2022 at 01:26PM

52
#172 - Rodney Visser / @_Radnus

03/16/2022 at 03:18PM

53
#173 - yeonlee / @yeonlee13820351

11/09/2021 at 12:49PM

53
#174 - Day / @Day_vimgolf

12/07/2021 at 07:47AM

53
#175 - yxke / @_yxke

12/17/2021 at 03:26AM

53
#176 - Cyber Security Daily News / @can_uygan

03/28/2022 at 10:52PM

53
#177 - Javier Contreras / @contranton

05/04/2022 at 06:42PM

54
#178 - Dominic Nunes / @domi91c

07/23/2021 at 03:15AM

54
#179 - Arryue / @Arryue2

07/31/2021 at 05:18PM

54
#180 - Craig Euler / @euler_craig

09/26/2021 at 02:08AM