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

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

221 active golfers, 704 entries

Solutions by @pherapont1:
12
#105 - pherapont / @pherapont1

02/09/2021 at 05:03AM

13
#>164 - pherapont / @pherapont1

02/09/2021 at 05:02AM

15
#>181 - pherapont / @pherapont1

02/09/2021 at 04:59AM

16
#>188 - pherapont / @pherapont1

02/09/2021 at 04:56AM

17
#>193 - pherapont / @pherapont1

02/09/2021 at 04:54AM

20
#>201 - pherapont / @pherapont1

02/09/2021 at 04:53AM

21
#>204 - pherapont / @pherapont1

02/09/2021 at 04:50AM

22
#>207 - pherapont / @pherapont1

02/09/2021 at 04:46AM

24
#>208 - pherapont / @pherapont1

02/09/2021 at 04:42AM

37
#>216 - pherapont / @pherapont1

02/09/2021 at 04:39AM

42
#>219 - pherapont / @pherapont1

02/09/2021 at 04:32AM