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

224 active golfers, 716 entries

Leaderboard (lowest score wins):
15
#181 - f00zz / @f00zz_

07/06/2020 at 11:36PM

15
#182 - igb43773@eoopy.com / @igb43773

08/06/2020 at 01:27PM

15
#183 - Olle Wiklund / @Kabix

08/06/2020 at 01:35PM

15
#184 - Brendan Schaenzer / @bschaenzer

10/02/2020 at 01:48AM

15
#185 - James / @Dronak

12/08/2022 at 08:17PM

15
#186 - 0xf00ff00f / @0xf00ff00f

10/19/2023 at 03:33PM

16
#187 - soundscope / @__soundscope__

06/29/2020 at 08:33AM

16
#188 - h2g2guy / @h2g2guy

07/05/2020 at 08:11AM

16
#189 - Daniel Habib / @danielhvs

07/21/2020 at 09:45PM

16
#190 - Yāsky / @Yaasky

09/01/2020 at 05:12PM

16
#191 - Christ / @Christ46234422

09/06/2020 at 01:17AM

17
#192 - Vinícius Hoyer / @viniciushoyer

06/19/2020 at 04:08PM

17
#193 - Jacob Shomstein / @jshoms

06/29/2020 at 02:27AM

17
#194 - Josh Lindoo / @JoshLindoo

07/02/2020 at 06:14PM

17
#195 - Thiago Becker / @beckert

08/06/2020 at 12:14PM

17
#196 - Robert Verst / @r_verst

09/02/2020 at 06:10AM

17
#197 - Himanshu Tank / @himanshutank75

11/03/2022 at 04:37AM

18
#198 - vito / @vito49999722

07/19/2020 at 09:54AM

18
#199 - abhijeet patil / @abhijeetptl5

09/03/2020 at 12:24PM

18
#200 - fff / @fff51460170

02/20/2021 at 02:56PM

18
#201 - e_e / @eleloi

02/13/2023 at 10:29PM

19
#202 - Tom / @CronutFacts

06/17/2020 at 01:42PM

19
#203 - drGsus / @drGsus

07/24/2020 at 05:45PM

19
#204 - Martin Bielik / @mabielik

08/06/2020 at 09:40PM

20
#205 - POSIX / @po6ix

01/07/2022 at 01:31AM

21
#206 - Arijus / @argshook

06/17/2020 at 05:49AM

21
#207 - Sebastian W. / @Sebasti91439242

09/01/2020 at 11:40PM

21
#208 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 07:35AM

22
#209 - Norman Liu / @normanwliu

07/25/2020 at 10:54PM

22
#210 - Theo Sarrazin / @tshaero

08/18/2020 at 10:11AM