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 225 remaining solutions by signing in and submitting your own entry
#226 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: @ThePrafulMathur

226 active golfers, 525 entries

Leaderboard (lowest score wins):
11
#121 - mazemult / @mazemult

03/10/2013 at 08:25PM

11
#122 - vimgolfthrowaway / @vimgolfthrowawa

03/30/2013 at 06:17AM

11
#123 - JR Tashjian / @jrtashjian

04/18/2013 at 06:04PM

11
#124 - Justin / @justinjaffray

04/23/2013 at 01:59AM

11
#125 - Mike Anderson / @mrmikea

04/26/2013 at 09:36PM

11
#126 - Chasetopher / @chasetopherlee

04/27/2013 at 10:05AM

11
#127 - Sean Anderson / @sean_anderson

04/29/2013 at 09:49AM

11
#128 - RobertT / @techrt2050

07/10/2013 at 10:32AM

11
#129 - cj / @cj01101

08/08/2013 at 11:44AM

11
#130 - Nathan / @NathanHarperoni

08/08/2013 at 01:53PM

11
#131 - zmf_tim / @zmf_tim

08/31/2013 at 11:32PM

11
#132 - brett / @brettyukich

09/21/2013 at 06:22AM

11
#133 - Oliver Christ / @0liverChrist

09/25/2013 at 02:53PM

11
#134 - NuM / @NuM314

10/05/2013 at 10:44PM

11
#135 - newton / @newtonsmartt

10/16/2013 at 05:55PM

11
#136 - US Dollar Price / @USDollarPrice

11/06/2013 at 07:17AM

11
#137 - Edgar Hipp / @EdgarHipp

11/14/2013 at 08:16PM

11
#138 - gary.klindt@googlema / @garstekli

11/28/2013 at 11:37PM

11
#139 - pikaren / @REALpikaren

01/07/2014 at 03:54AM

11
#140 - João Paiva / @jgpaiva

01/31/2014 at 12:53PM

11
#141 - Matthew M. Keeler / @keelerm84

02/02/2014 at 05:54AM

11
#142 - Joonas Pihlajamaa / @jokkebk

02/20/2014 at 10:46AM

11
#143 - devper94 / @devper94

03/16/2014 at 09:38AM

11
#144 - Patrick Oscity / @der_padde

03/26/2014 at 12:45PM

11
#145 - Brian Olpin / @bolpin

04/01/2014 at 04:07AM

11
#146 - RB / @powerage88

04/20/2014 at 04:04PM

11
#147 - Ram Tamtam / @ramtamtamtam

07/05/2014 at 12:54PM

11
#148 - RiccardoSven Risuleo / @riccardosven

07/18/2014 at 10:13PM

11
#149 - LC / @leeren

08/10/2014 at 06:41AM

11
#150 - Patrick Pitoscia / @Patrick03960431

08/10/2014 at 08:38PM