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):
11
#181 - Brandon Blakeley / @zkelvin

11/25/2017 at 06:37AM

11
#182 - Luke Parsons / @lukeparsons

12/21/2017 at 09:31AM

11
#183 - Marius Jurgelenas / @MarenasLT

03/22/2018 at 12:59PM

11
#184 - Chenut Ludovic / @7Brwa7

04/19/2018 at 01:19PM

11
#185 - Timur Celik / @clktmr

12/22/2018 at 07:42PM

11
#186 - Mihai / @mihaicristiant

02/01/2019 at 08:07AM

11
#187 - Nick Yeow / @nickyeow

05/23/2019 at 01:13PM

11
#188 - Chester Yap / @Chest_ErYap

08/04/2019 at 04:33PM

11
#189 - Chrostopher Leu / @shaggadalic

01/10/2020 at 01:37PM

11
#190 - Johannes Riecken / @rubystallion

01/15/2020 at 09:28PM

11
#191 - Michel Viktor / @tomkpz

08/08/2021 at 10:18PM

11
#192 - POSIX / @po6ix

01/22/2022 at 03:10PM

11
#193 - blabla zincou / @BZincou

04/18/2022 at 11:43PM

11
#194 - James / @Dronak

11/07/2022 at 08:43PM

11
#195 - かみひろ / @km_hr

03/10/2024 at 04:29AM

11
#196 - Pablo Acuna / @pacuna

11/16/2024 at 09:48PM

12
#197 - Ravi S Sinha / @ambidextrousTx

12/19/2012 at 07:04AM

12
#198 - Kubek2k / @kubek2k

12/31/2012 at 10:45AM

12
#199 - Bertie Wooster / @bxwooster

01/04/2013 at 01:51PM

12
#200 - fumi komi / @kommy_vx

03/28/2013 at 05:13AM

12
#201 - Jesse Nazario / @JesseNazario

04/18/2013 at 01:48PM

12
#202 - Woojung Kim 김우중 / @_kimwz

07/15/2013 at 04:48AM

12
#203 - A / @Tower_1980

08/02/2013 at 11:36AM

12
#204 - Bart of Denver / @bartofdenver

08/12/2013 at 03:33PM

12
#205 - Hachez Floran / @FloranHachez

09/03/2013 at 08:16PM

12
#206 - Va bien te faire fou / @mplayer_vimgolf

03/21/2014 at 12:59PM

12
#207 - ryk / @rykarn

05/02/2014 at 08:30PM

12
#208 - Rathrio / @Rathrio

09/02/2014 at 12:12PM

12
#209 - Adam Redfern / @AdmRedfern

12/23/2014 at 09:31AM

12
#210 - Etienne Tremel / @etiennetremel

02/20/2016 at 09:14PM