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):
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

12
#74 - Nicolas Marier / @NicMarier

08/13/2020 at 05:31PM

12
#75 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 09:56AM

12
#76 - Golf Gopher / @GolfGopher3

08/17/2020 at 01:24PM

12
#77 - Андрей / @appomsk

08/18/2020 at 06:23PM

12
#78 - Tanzeel Kazi / @tanzeelkazi

08/21/2020 at 05:06AM

12
#79 - Łukasz Kadłubowski / @LAKadlubowski

08/21/2020 at 06:16AM

12
#80 - Blake Tereau / @BlakeTereau

08/26/2020 at 10:31PM

12
#81 - Luc Kien Hang / @luckienhang

09/04/2020 at 01:04AM

12
#82 - Muffin / @Muffin91707986

09/05/2020 at 09:42AM

12
#83 - akouryy / @akouryy1

09/07/2020 at 02:36AM

12
#84 - 刘宏亮 / @CoyAkey

09/27/2020 at 03:55AM

12
#85 - Vildu / @Vildu3

09/30/2020 at 09:50AM

12
#86 - mstronam / @mstronam

10/02/2020 at 11:08AM

12
#87 - lamtt77 / @lamtt77

10/09/2020 at 09:56AM

13
#88 - Saki Gw / @Sakigw

06/17/2020 at 06:20AM

13
#89 - Riley Shea / @RShea001

06/18/2020 at 12:46AM

13
#90 - Edgar Domingues / @edgar_domingues

06/18/2020 at 07:02AM