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

134 active golfers, 386 entries

Leaderboard (lowest score wins):
18
#121 - abhijeet patil / @abhijeetptl5

09/03/2020 at 12:24PM

19
#122 - Tom / @CronutFacts

06/17/2020 at 01:42PM

19
#123 - drGsus / @drGsus

07/24/2020 at 05:45PM

19
#124 - Martin Bielik / @mabielik

08/06/2020 at 09:40PM

21
#125 - Arijus / @argshook

06/17/2020 at 05:49AM

21
#126 - Sebastian W. / @Sebasti91439242

09/01/2020 at 11:40PM

22
#127 - Norman Liu / @normanwliu

07/25/2020 at 10:54PM

22
#128 - Theo Sarrazin / @tshaero

08/18/2020 at 10:11AM

25
#129 - Rohan Bansal / @rbnsl_

06/20/2020 at 02:19AM

25
#130 - Nolan Freeman / @NolanFreeman

07/01/2020 at 08:27AM

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

06/20/2020 at 12:37AM

37
#132 - Anil Narayan / @AnilNarayan2013

07/10/2020 at 04:43AM

39
#133 - jackmark / @jackmar14540583

07/10/2020 at 07:56AM

56
#134 - Kenny Nguyen / @KennyNg72375669

08/05/2020 at 07:09PM