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

112 active golfers, 330 entries

Leaderboard (lowest score wins):
12
#61 - Tinko Minko / @tandikula

07/13/2020 at 08:14AM

12
#62 - Dane Summers / @dsummersl

07/16/2020 at 01:42PM

12
#63 - analogpixel / @analogp1xel

07/18/2020 at 05:35PM

12
#64 - Saurabh / @Saurabh09299

07/21/2020 at 01:51PM

12
#65 - Jason / @jason_eveleth

07/23/2020 at 06:54AM

12
#66 - Mislav Vuletić / @MasterGeeMedo

07/26/2020 at 01:29PM

12
#67 - Gergely Risko / @errge

07/28/2020 at 10:56PM

12
#68 - MathijsHoogland / @MathijsHoogland

07/31/2020 at 07:27AM

12
#69 - Filipe Brandenburger / @filbranden

08/03/2020 at 04:29PM

12
#70 - ぼとぼと / @boto_voto

08/04/2020 at 12:17PM

12
#71 - GenericHardwareGamer / @GnrikHrdwrGamer

08/05/2020 at 09:44AM

12
#72 - David Martínez / @g0ddrinksjava

08/08/2020 at 07:28PM

12
#73 - Ivan Kwong / @IvanKwong5

08/09/2020 at 03:30PM

13
#74 - Saki Gw / @Sakigw

06/17/2020 at 06:20AM

13
#75 - Riley Shea / @RShea001

06/18/2020 at 12:46AM

13
#76 - Edgar Domingues / @edgar_domingues

06/18/2020 at 07:02AM

13
#77 - Samill / @Samill20274954

06/20/2020 at 06:54AM

13
#78 - Ron Lau / @ronyclau

06/21/2020 at 01:44PM

13
#79 - betmaster / @betmstr

06/21/2020 at 06:26PM

13
#80 - eliasrg / @eliasrg16

06/24/2020 at 12:55AM

13
#81 - Fabien C. / @vaga_io

06/25/2020 at 01:20PM

13
#82 - Yannick / @Yannick88147038

07/04/2020 at 07:58PM

13
#83 - Remy_Clarke / @_Remy_Clarke_

07/17/2020 at 11:41PM

15
#84 - Derek Schrock / @derekschrock

06/17/2020 at 06:06AM

15
#85 - grilledTheorist / @GrilledTheorist

06/17/2020 at 01:30PM

15
#86 - Richard Lowe / @b0ggyb33

06/18/2020 at 10:56AM

15
#87 - ligu / @ligu93586044

06/19/2020 at 07:51PM

15
#88 - Francesco De Rose / @fdierre

06/26/2020 at 09:18PM

15
#89 - Ravi S Sinha / @ambidextrousTx

06/29/2020 at 06:26PM

15
#90 - Miłosz Łakomy / @foobar01123

07/05/2020 at 03:04PM