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 103 remaining solutions by signing in and submitting your own entry
#104 jackmark / @jackmar14540583 - Score: 39 - 07/10/20 @ 07:56
:%s/\(.\{-}[a-z]\)\(\d.*\)/\1-\2/g<CR>:wq<CR>

0 comments


Created by: @argshook

104 active golfers, 314 entries

Leaderboard (lowest score wins):
12
#31 - Juan Manuel Fresia / @fresiajm

06/21/2020 at 11:04PM

12
#32 - Ryan Nevius / @ryannevius

06/22/2020 at 05:32AM

12
#33 - Satish Maurya / @maurya777

06/22/2020 at 07:21AM

12
#34 - Moatvald / @moatvald

06/22/2020 at 08:18AM

12
#35 - speisz / @speiszc

06/22/2020 at 10:18PM

12
#36 - Karol Łukaszewicz / @Karolukaszewicz

06/23/2020 at 10:43AM

12
#37 - majo senf / @majo_senf

06/23/2020 at 11:41AM

12
#38 - Valdimar / @genkobar

06/23/2020 at 09:19PM

12
#39 - Will / @WillTakeLe

06/25/2020 at 08:35AM

12
#40 - example_user_1032452 / @E1032452

06/25/2020 at 07:42PM

12
#41 - mocihan / @mocihan

06/26/2020 at 06:36AM

12
#42 - Dan / @nnmnsmmr

06/27/2020 at 07:06PM

12
#43 - 薛乾明 / @xueqianming200

06/28/2020 at 11:38AM

12
#44 - 大矢元海 / @008Genkai

06/29/2020 at 09:20AM

12
#45 - pady. 🇪🇺 🇩🇪 🇷🇴 / @hundertzwoelf_

06/29/2020 at 06:26PM

12
#46 - Ming Dai / @MingDai2

06/29/2020 at 11:45PM

12
#47 - Mitchell Horning / @HorningMitchell

06/30/2020 at 08:09PM

12
#48 - Mario Olofo / @mario_olofo

07/01/2020 at 12:21PM

12
#49 - JLObject / @powful_panda

07/01/2020 at 02:09PM

12
#50 - Ron-Shan,Chang / @highlupin

07/02/2020 at 03:34PM

12
#51 - Jan Sturm / @JanSturm77

07/02/2020 at 06:01PM

12
#52 - Rishabh Dwivedi / @Rishabh45312910

07/03/2020 at 07:52PM

12
#53 - Brennan Barker / @BrennanJBarker

07/04/2020 at 12:24PM

12
#54 - Ivo Blöchliger / @aigledesalpes

07/06/2020 at 07:33PM

12
#55 - rl5day / @rl5day

07/07/2020 at 04:49AM

12
#56 - Lucas Moon / @LucasMo01299826

07/07/2020 at 05:47AM

12
#57 - Ángel Durán / @AngeeelD

07/09/2020 at 03:11AM

12
#58 - PK / @pkeugine

07/10/2020 at 08:43AM

12
#59 - Adrián Delgado / @Caritativito

07/11/2020 at 11:23PM

12
#60 - Виталий Макаров / @avada_keda_bra

07/12/2020 at 09:51PM