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

153 active golfers, 438 entries

Leaderboard (lowest score wins):
15
#121 - Francesco De Rose / @fdierre

06/26/2020 at 09:18PM

15
#122 - Ravi S Sinha / @ambidextrousTx

06/29/2020 at 06:26PM

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

07/05/2020 at 03:04PM

15
#124 - f00zz / @f00zz_

07/06/2020 at 11:36PM

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

08/06/2020 at 01:27PM

15
#126 - Olle Wiklund / @Kabix

08/06/2020 at 01:35PM

15
#127 - Brendan Schaenzer / @bschaenzer

10/02/2020 at 01:48AM

16
#128 - soundscope / @__soundscope__

06/29/2020 at 08:33AM

16
#129 - h2g2guy / @h2g2guy

07/05/2020 at 08:11AM

16
#130 - Daniel Habib / @danielhvs

07/21/2020 at 09:45PM

16
#131 - Yasky / @Yaasky

09/01/2020 at 05:12PM

16
#132 - Christ / @Christ46234422

09/06/2020 at 01:17AM

17
#133 - Vinícius Hoyer / @viniciushoyer

06/19/2020 at 04:08PM

17
#134 - Jacob Shomstein / @jshoms

06/29/2020 at 02:27AM

17
#135 - Josh Lindoo / @JoshLindoo

07/02/2020 at 06:14PM

17
#136 - Thiago Becker / @beckert

08/06/2020 at 12:14PM

17
#137 - Robert Verst / @r_verst

09/02/2020 at 06:10AM

18
#138 - vito / @vito49999722

07/19/2020 at 09:54AM

18
#139 - abhijeet patil / @abhijeetptl5

09/03/2020 at 12:24PM

19
#140 - Tom / @CronutFacts

06/17/2020 at 01:42PM

19
#141 - drGsus / @drGsus

07/24/2020 at 05:45PM

19
#142 - Martin Bielik / @mabielik

08/06/2020 at 09:40PM

20
#143 - moh ayaya / @AyayaMoh

11/06/2020 at 09:54PM

21
#144 - Arijus / @argshook

06/17/2020 at 05:49AM

21
#145 - Sebastian W. / @Sebasti91439242

09/01/2020 at 11:40PM

22
#146 - Norman Liu / @normanwliu

07/25/2020 at 10:54PM

22
#147 - Theo Sarrazin / @tshaero

08/18/2020 at 10:11AM

25
#148 - Rohan Bansal / @rbnsl_

06/20/2020 at 02:19AM

25
#149 - Nolan Freeman / @NolanFreeman

07/01/2020 at 08:27AM

26
#150 - Marian Minar (jr.) / @majamin

06/20/2020 at 12:37AM