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
#121 - Xinruo Sun / @xiaoruoruo

12/22/2012 at 12:31PM

11
#122 - Matt Garriott / @GarriottMatt

12/27/2012 at 12:28AM

11
#123 - cheerfulstoic / @cheerfulstoic

12/28/2012 at 09:00PM

11
#124 - Tetsuya Matsuyama / @m_tetsuya

12/30/2012 at 12:57PM

11
#125 - Khoi Tran / @khoitran19

01/02/2013 at 05:07PM

11
#126 - Alec Goebel / @zego5360

01/04/2013 at 03:48AM

11
#127 - Filip / @fylyps_tw

01/05/2013 at 01:18PM

11
#128 - Vasil Sakarov / @vsakarov

01/07/2013 at 12:34PM

11
#129 - Peter Xiao / @PterXiao

01/23/2013 at 04:57AM

11
#130 - CY / @wongcy0

01/27/2013 at 09:47AM

11
#131 - Christopher Harrison / @Xophmeister

01/28/2013 at 12:13PM

11
#132 - fabiano taddei / @Brodoblu

02/03/2013 at 04:21PM

11
#133 - Matt Redding / @MattRedding

02/18/2013 at 10:54AM

11
#134 - Ilya Loginov / @_zerone_

02/24/2013 at 10:18PM

11
#135 - Andrés Llopis / @andreselsuave

03/04/2013 at 01:16AM

11
#136 - Niil Öhlin / @Niil94

03/04/2013 at 09:33PM

11
#137 - Bailey Ling / @blingcoder

03/09/2013 at 04:16AM

11
#138 - mazemult / @mazemult

03/10/2013 at 08:25PM

11
#139 - vimgolfthrowaway / @vimgolfthrowawa

03/30/2013 at 06:17AM

11
#140 - JR Tashjian / @jrtashjian

04/18/2013 at 06:04PM

11
#141 - Justin / @justinjaffray

04/23/2013 at 01:59AM

11
#142 - Mike Anderson / @mrmikea

04/26/2013 at 09:36PM

11
#143 - Chasetopher / @chasetopherlee

04/27/2013 at 10:05AM

11
#144 - Sean Anderson / @sean_anderson

04/29/2013 at 09:49AM

11
#145 - RobertT / @techrt2050

07/10/2013 at 10:32AM

11
#146 - cj / @cj01101

08/08/2013 at 11:44AM

11
#147 - Nathan / @NathanHarperoni

08/08/2013 at 01:53PM

11
#148 - zmf_tim / @zmf_tim

08/31/2013 at 11:32PM

11
#149 - brett / @brettyukich

09/21/2013 at 06:22AM

11
#150 - Oliver Christ / @0liverChrist

09/25/2013 at 02:53PM