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 82 remaining solutions by signing in and submitting your own entry
#83 Marian Minar (jr.) / @majamin - Score: 26 - 06/20/20 @ 00:37
:%s/[A-Z]\{2,\}/\0-/g<CR>:wq<CR>

0 comments


Created by: @argshook

83 active golfers, 244 entries

Leaderboard (lowest score wins):
12
#1 - Smylers / @Smylers2

06/17/2020 at 06:26AM

12
#2 - Seve / @__Seve__

06/17/2020 at 06:59AM

12
#3 - Roger Stoltz / @rogsto1

06/17/2020 at 07:09AM

12
#4 - Jan Bundesmann / @janbundesmann

06/17/2020 at 07:32AM

12
#5 - Jonáš Šerých / @serycjon

06/17/2020 at 08:34AM

12
#6 - せいほう / @FICSQF

06/17/2020 at 08:57AM

12
#7 - garry quested / @GQuested

06/17/2020 at 09:40AM

12
#8 - Robberechts Arne / @ArneRobberechts

06/17/2020 at 12:03PM

12
#9 - Jon Krause / @jkrause314

06/17/2020 at 02:29PM

12
#10 - John Braxler / @braxler

06/17/2020 at 02:34PM

12
#11 - khedd / @sinan_khedd

06/17/2020 at 04:52PM

12
#12 - Lakshitha Wijesinghe / @lakshithaww

06/17/2020 at 10:10PM

12
#13 - Frank Malone / @FrankMa00268686

06/18/2020 at 03:20AM

12
#14 - dirkrob / @dirkrob1

06/18/2020 at 03:36AM

12
#15 - 鏡崎ましろ / @KagamisakiMsr

06/18/2020 at 08:17AM

12
#16 - RaylanFox / @RaylanFox

06/18/2020 at 08:56AM

12
#17 - JimmyGymglish / @JGymglish

06/18/2020 at 10:34AM

12
#18 - Finlay l͓̽o͓̽c͓̽k͓̽e͓̽d͓̽d͓̽o͓̽w͓̽n͓̽ McAfee / @finsqm

06/18/2020 at 11:59AM

12
#19 - RockerZZY / @rocker_zzy

06/18/2020 at 01:53PM

12
#20 - Simon Wydooghe / @simonwydooghe

06/18/2020 at 06:05PM

12
#21 - lqkem3 / @lqkem31

06/19/2020 at 04:48AM

12
#22 - Chris AtLee / @chrisatlee

06/19/2020 at 01:22PM

12
#23 - vimRunnerUp3000 / @VUp3000

06/19/2020 at 01:47PM

12
#24 - Frederik Semmel / @frederik_semmel

06/19/2020 at 08:36PM

12
#25 - kcalbnodrog / @kcalbnodrog

06/19/2020 at 09:12PM

12
#26 - TimMcGuire / @mcguire

06/19/2020 at 09:41PM

12
#27 - Chicuella / @chicuellahere

06/19/2020 at 10:49PM

12
#28 - もりを / @morio_prog

06/20/2020 at 03:21AM

12
#29 - Regis A. Ely / @regisaely

06/20/2020 at 08:32PM

12
#30 - Norbert / @mullno

06/20/2020 at 09:41PM