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 @008Genkai:

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

221 active golfers, 704 entries

Solutions by @008Genkai:
12
#44 - 大矢元海 / @008Genkai

06/29/2020 at 09:20AM

13
#>159 - 大矢元海 / @008Genkai

06/29/2020 at 09:18AM

15
#>175 - 大矢元海 / @008Genkai

06/29/2020 at 09:18AM

16
#>184 - 大矢元海 / @008Genkai

06/29/2020 at 09:11AM

16
#>184 - 大矢元海 / @008Genkai

06/29/2020 at 09:14AM

17
#>190 - 大矢元海 / @008Genkai

06/29/2020 at 09:10AM

19
#>199 - 大矢元海 / @008Genkai

06/29/2020 at 08:56AM

21
#>203 - 大矢元海 / @008Genkai

06/29/2020 at 08:51AM

21
#>203 - 大矢元海 / @008Genkai

06/29/2020 at 08:52AM

24
#>208 - 大矢元海 / @008Genkai

06/29/2020 at 08:46AM

33
#>215 - 大矢元海 / @008Genkai

06/29/2020 at 08:34AM