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

153 active golfers, 438 entries

Leaderboard (lowest score wins):
12
#91 - quemeraisc / @quemeraisc

11/20/2020 at 09:19AM

12
#92 - drumstix576 / @drumstix576

11/20/2020 at 06:37PM

12
#93 - Filipe Barroso 💙 / @ABarroso

11/21/2020 at 02:27PM

12
#94 - hepebexè / @hepebexe

11/30/2020 at 07:11PM

12
#95 - Neverlandrunner / @neverlandrunner

12/06/2020 at 02:28PM

12
#96 - Dax / @zacoxi

12/14/2020 at 01:00PM

12
#97 - John Doe / @JohnDoe75830353

12/24/2020 at 01:54AM

12
#98 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:21PM

12
#99 - Björn Struckmeier / @BjrnStruckmeie1

01/07/2021 at 01:05PM

12
#100 - A A A / @37fatos

01/10/2021 at 07:58PM

12
#101 - Ray Dennis / @raysden

01/11/2021 at 03:06PM

12
#102 - 蔡徐坤真是爱吃屎 / @Hashub7

01/21/2021 at 12:01PM

12
#103 - Andreas Siegrist / @andreaszwei

01/25/2021 at 09:09AM

13
#104 - Saki Gw / @Sakigw

06/17/2020 at 06:20AM

13
#105 - Riley Shea / @RShea001

06/18/2020 at 12:46AM

13
#106 - Edgar Domingues / @edgar_domingues

06/18/2020 at 07:02AM

13
#107 - Samill / @Samill20274954

06/20/2020 at 06:54AM

13
#108 - Ron Lau / @ronyclau

06/21/2020 at 01:44PM

13
#109 - betmaster / @betmstr

06/21/2020 at 06:26PM

13
#110 - eliasrg / @eliasrg16

06/24/2020 at 12:55AM

13
#111 - Fabien C. / @vaga_io

06/25/2020 at 01:20PM

13
#112 - Yannick / @Yannick88147038

07/04/2020 at 07:58PM

13
#113 - Remy_Clarke / @_Remy_Clarke_

07/17/2020 at 11:41PM

13
#114 - lz2ggf / @lz2ggf

08/26/2020 at 07:47PM

13
#115 - chocolate / @chocola81394123

12/30/2020 at 10:51AM

13
#116 - 영훈 / @odjfnrtm

01/23/2021 at 01:27AM

15
#117 - Derek Schrock / @derekschrock

06/17/2020 at 06:06AM

15
#118 - grilledTheorist / @GrilledTheorist

06/17/2020 at 01:30PM

15
#119 - Richard Lowe / @b0ggyb33

06/18/2020 at 10:56AM

15
#120 - ligu / @ligu93586044

06/19/2020 at 07:51PM