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 5ee9ae243a035f000c6141d7

xrandr outputs and dashes

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

Start file
xrandr \
  --output VIRTUAL1 --off \
  --output DP3 --off \
  --output eDP1 --off \
  --output DP1 --off \
  --output DP2 --off \
  --output HDMI3 --off \
  --output HDMI2 --off \
  --output HDMI1 --off \
  --output DP3-1 --off \
  --output DP3-3 --off \
  --output DP3-2 --off \
  --output eDP1 --primary --mode 1920x1080
End file
xrandr \
  --output VIRTUAL-1 --off \
  --output DP-3 --off \
  --output eDP-1 --off \
  --output DP-1 --off \
  --output DP-2 --off \
  --output HDMI-3 --off \
  --output HDMI-2 --off \
  --output HDMI-1 --off \
  --output DP-3-1 --off \
  --output DP-3-3 --off \
  --output DP-3-2 --off \
  --output eDP-1 --primary --mode 1920x1080

View Diff

2,13c2,13
<   --output VIRTUAL1 --off \
<   --output DP3 --off \
<   --output eDP1 --off \
<   --output DP1 --off \
<   --output DP2 --off \
<   --output HDMI3 --off \
<   --output HDMI2 --off \
<   --output HDMI1 --off \
<   --output DP3-1 --off \
<   --output DP3-3 --off \
<   --output DP3-2 --off \
<   --output eDP1 --primary --mode 1920x1080
---
>   --output VIRTUAL-1 --off \
>   --output DP-3 --off \
>   --output eDP-1 --off \
>   --output DP-1 --off \
>   --output DP-2 --off \
>   --output HDMI-3 --off \
>   --output HDMI-2 --off \
>   --output HDMI-1 --off \
>   --output DP-3-1 --off \
>   --output DP-3-3 --off \
>   --output DP-3-2 --off \
>   --output eDP-1 --primary --mode 1920x1080

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 133 remaining solutions by signing in and submitting your own entry
#134 Kenny Nguyen / @KennyNg72375669 - Score: 56 - 08/05/20 @ 19:09
:%s/VIRTUAL/VIRTUAL-/g<CR>:%s/DP/DP-/g<CR>:%s/HDMI/HDMI-<CR>:wq!<CR>

0 comments


Created by: @argshook

134 active golfers, 386 entries

Leaderboard (lowest score wins):
13
#91 - Samill / @Samill20274954

06/20/2020 at 06:54AM

13
#92 - Ron Lau / @ronyclau

06/21/2020 at 01:44PM

13
#93 - betmaster / @betmstr

06/21/2020 at 06:26PM

13
#94 - eliasrg / @eliasrg16

06/24/2020 at 12:55AM

13
#95 - Fabien C. / @vaga_io

06/25/2020 at 01:20PM

13
#96 - Yannick / @Yannick88147038

07/04/2020 at 07:58PM

13
#97 - Remy_Clarke / @_Remy_Clarke_

07/17/2020 at 11:41PM

13
#98 - lz2ggf / @lz2ggf

08/26/2020 at 07:47PM

15
#99 - Derek Schrock / @derekschrock

06/17/2020 at 06:06AM

15
#100 - grilledTheorist / @GrilledTheorist

06/17/2020 at 01:30PM

15
#101 - Richard Lowe / @b0ggyb33

06/18/2020 at 10:56AM

15
#102 - ligu / @ligu93586044

06/19/2020 at 07:51PM

15
#103 - Francesco De Rose / @fdierre

06/26/2020 at 09:18PM

15
#104 - Ravi S Sinha / @ambidextrousTx

06/29/2020 at 06:26PM

15
#105 - Miłosz Łakomy / @foobar01123

07/05/2020 at 03:04PM

15
#106 - f00zz / @f00zz_

07/06/2020 at 11:36PM

15
#107 - igb43773@eoopy.com / @igb43773

08/06/2020 at 01:27PM

15
#108 - Olle Wiklund / @Kabix

08/06/2020 at 01:35PM

15
#109 - Brendan Schaenzer / @bschaenzer

10/02/2020 at 01:48AM

16
#110 - soundscope / @__soundscope__

06/29/2020 at 08:33AM

16
#111 - h2g2guy / @h2g2guy

07/05/2020 at 08:11AM

16
#112 - Daniel Habib / @danielhvs

07/21/2020 at 09:45PM

16
#113 - Yasky / @Yaasky

09/01/2020 at 05:12PM

16
#114 - Christ / @Christ46234422

09/06/2020 at 01:17AM

17
#115 - Vinícius Hoyer / @viniciushoyer

06/19/2020 at 04:08PM

17
#116 - Jacob Shomstein / @jshoms

06/29/2020 at 02:27AM

17
#117 - Josh Lindoo / @JoshLindoo

07/02/2020 at 06:14PM

17
#118 - Thiago Becker / @beckert

08/06/2020 at 12:14PM

17
#119 - Robert Verst / @r_verst

09/02/2020 at 06:10AM

18
#120 - vito / @vito49999722

07/19/2020 at 09:54AM