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 by @Kausic99:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @argshook

221 active golfers, 704 entries

Solutions by @Kausic99:
12
#132 - Kausic / @Kausic99

09/25/2022 at 07:18AM

13
#>169 - Kausic / @Kausic99

09/25/2022 at 07:18AM

15
#>181 - Kausic / @Kausic99

09/25/2022 at 07:16AM

16
#>188 - Kausic / @Kausic99

09/25/2022 at 07:15AM

17
#>193 - Kausic / @Kausic99

09/25/2022 at 07:13AM

20
#>202 - Kausic / @Kausic99

09/25/2022 at 07:11AM

21
#>204 - Kausic / @Kausic99

09/25/2022 at 07:10AM

22
#>208 - Kausic / @Kausic99

09/25/2022 at 07:05AM

24
#>208 - Kausic / @Kausic99

09/25/2022 at 07:04AM

28
#>213 - Kausic / @Kausic99

09/25/2022 at 07:01AM

30
#>214 - Kausic / @Kausic99

09/25/2022 at 06:59AM

31
#>214 - Kausic / @Kausic99

09/25/2022 at 06:58AM