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 @bli231957:

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

192 active golfers, 588 entries

Solutions by @bli231957:
12
#122 - jdfgjhsbd / @bli231957

10/02/2021 at 10:24AM

13
#>147 - jdfgjhsbd / @bli231957

10/02/2021 at 10:24AM

15
#>158 - jdfgjhsbd / @bli231957

10/02/2021 at 10:23AM

16
#>163 - jdfgjhsbd / @bli231957

10/02/2021 at 10:22AM

17
#>168 - jdfgjhsbd / @bli231957

10/02/2021 at 10:21AM

20
#>175 - jdfgjhsbd / @bli231957

10/02/2021 at 10:21AM

21
#>178 - jdfgjhsbd / @bli231957

10/02/2021 at 10:20AM

22
#>181 - jdfgjhsbd / @bli231957

10/02/2021 at 10:19AM

24
#>181 - jdfgjhsbd / @bli231957

10/02/2021 at 10:18AM

28
#>185 - jdfgjhsbd / @bli231957

10/02/2021 at 10:16AM

30
#>186 - jdfgjhsbd / @bli231957

10/02/2021 at 10:16AM

37
#>188 - jdfgjhsbd / @bli231957

10/02/2021 at 10:14AM

55
#>191 - jdfgjhsbd / @bli231957

10/02/2021 at 10:12AM