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 50d0d80eaa503f000200001b

Swap assigned value

Simple problem but looking for interesting solutions.

Start file
app.config['CHALLENGE_FOLDER'] = SOLUTIONS_FOLDER
app
.config['SOLUTIONS_FOLDER'] = CHALLENGE_FOLDER
End file
app.config['CHALLENGE_FOLDER'] = CHALLENGE_FOLDER
app
.config['SOLUTIONS_FOLDER'] = SOLUTIONS_FOLDER

View Diff

diff --git 1/tmp/vimgolf_problem.in 2/tmp/vimgolf_problem.out
index
686e836..225e001 100644
--- 1/tmp/vimgolf_problem.in
+++ 2/tmp/vimgolf_problem.out
@@ -1,2 +1,2 @@
-app.config['CHALLENGE_FOLDER'] = SOLUTIONS_FOLDER
-app.config['SOLUTIONS_FOLDER'] = CHALLENGE_FOLDER
+app.config['CHALLENGE_FOLDER'] = CHALLENGE_FOLDER
+app.config['SOLUTIONS_FOLDER'] = SOLUTIONS_FOLDER

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 255 remaining solutions by signing in and submitting your own entry
#256 hasiotis / @hasiotis - Score: 101 - 04/16/13 @ 20:56
:%s/=\(\)<Left><Left><Left><Left> <Right><Right>.*<Right><Right>\n<BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>:<Tab>%s/\(.*\) = \(.*\)\n\(.*\) = \(.*\)/\1 = \4\r\3 = \2/<CR>:<Up><Home><Del><CR>:wq<CR>

0 comments


Created by: @Prafulfillment

256 active golfers, 655 entries

Leaderboard (lowest score wins):
10
#91 - Daniël De Koker / @daniel_koker

07/26/2018 at 08:57PM

10
#92 - majo senf / @majo_senf

06/25/2019 at 12:47PM

10
#93 - Lory / @Lory46845742

12/06/2019 at 09:52AM

10
#94 - Miłosz Łakomy / @foobar01123

02/14/2020 at 08:41PM

10
#95 - RockerZZY / @rocker_zzy

06/26/2020 at 02:57AM

10
#96 - Ming Dai / @MingDai2

07/06/2020 at 02:49PM

10
#97 - mindgitrwx / @mindgitrwx

08/30/2020 at 10:06AM

10
#98 - lydxn / @lydxn1

07/28/2021 at 05:41AM

10
#99 - Salvador Tojo Quintela / @SalvadorTojo

10/10/2021 at 06:41AM

10
#100 - Jean George / @JeanGeo20504212

03/21/2022 at 12:09AM

10
#101 - russellzhaomao / @russellzhaomao

06/12/2022 at 01:31AM

10
#102 - Alex / @AlexanderHeatl2

07/08/2022 at 08:06PM

10
#103 - Janzen / @__Coos

09/28/2022 at 07:18AM

10
#104 - Jakob Föger / @drvolcano86

02/17/2023 at 01:39PM

10
#105 - Olivier Bégassat / @zk_evm

06/15/2023 at 08:01PM

10
#106 - Dionysus / @user101user

06/16/2023 at 02:36PM

10
#107 - scpchicken / @scpchick

10/19/2023 at 05:33PM

10
#108 - Remus Dalrymple / @bornintheflames

12/14/2023 at 11:15PM

10
#109 - sosa-daniel / @sosa-daniel

12/29/2023 at 07:05PM

10
#110 - Kanmuruuruu / @Kanmuruuruu

04/08/2024 at 08:16PM

10
#111 - xiaoao1024 / @xiaoao1024

04/26/2024 at 10:36AM

10
#112 - Peppa Pig / @PeppaPigSg

07/03/2024 at 06:20AM

10
#113 - nickGPT / @nickandbro

08/28/2024 at 07:08PM

10
#114 - Eng. José Esteves / @JGEsteves89

02/17/2025 at 04:05PM

11
#115 - DR / @dde81

12/18/2012 at 09:08PM

11
#116 - Ricardo Mendes / @locks

12/18/2012 at 09:09PM

11
#117 - z0k / @z0k

12/19/2012 at 11:32AM

11
#118 - joe di castro / @joe_di_castro

12/19/2012 at 12:12PM

11
#119 - すー / @cubebit

12/19/2012 at 01:23PM

11
#120 - buz / @buzbone

12/20/2012 at 11:43AM