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
#31 - shpoont / @shpoont

02/05/2013 at 04:43PM

10
#32 - N / @nymph192

02/11/2013 at 09:48PM

10
#33 - Kai Yuan / @kentyuan

02/21/2013 at 09:23PM

10
#34 - Joel Elkins / @dice_tea

03/03/2013 at 03:45AM

10
#35 - Trevor Powell / @DoomedBunnies

03/20/2013 at 03:25AM

10
#36 - Mr. Mackey / @MackdaddyJunior

03/27/2013 at 06:42PM

10
#37 - gnobbles / @gnobbles

03/31/2013 at 01:48AM

10
#38 - John Smith / @c2kdev21

04/02/2013 at 07:29PM

10
#39 - Gtranbot / @gtranbot

04/27/2013 at 11:01AM

10
#40 - Al Stanforth / @AlStanforth

05/01/2013 at 01:29PM

10
#41 - Alan Kessler / @alankesslr

05/17/2013 at 12:13AM

10
#42 - 张文远 / @zhwenyuan

05/24/2013 at 04:09PM

10
#43 - Lance Levine / @LanceSMLevine

05/25/2013 at 06:30AM

10
#44 - Stefan Leszkiewicz / @stefanlz

05/30/2013 at 08:01AM

10
#45 - Petro Тrouq / @zulolosi

06/03/2013 at 08:50PM

10
#46 - powertomato / @powertomato

06/27/2013 at 09:30PM

10
#47 - James Scriven / @JamesDScriven

07/06/2013 at 10:53PM

10
#48 - Bradd Szonye / @bszonye

07/13/2013 at 01:14AM

10
#49 - cook / @mattcook08

07/16/2013 at 09:34PM

10
#50 - Aaron Bieber / @aaronbieber

07/17/2013 at 11:11PM

10
#51 - _ky_ / @ultimate_ky

08/14/2013 at 05:34AM

10
#52 - Stephen Drodge / @sjdrodge

10/07/2013 at 11:57PM

10
#53 - Casey Dwyer / @caseydwyer

11/04/2013 at 02:57AM

10
#54 - Fontaine Kévin / @DotSlash974

11/16/2013 at 06:54PM

10
#55 - Stefan Schmidt / @stafue

12/06/2013 at 02:30PM

10
#56 - Ian Laird / @irlaird

12/13/2013 at 04:49PM

10
#57 - Andrew O'Neill / @AndroidOatmeal

12/19/2013 at 03:27PM

10
#58 - Yann Moisan / @YannMoisan

01/02/2014 at 01:25AM

10
#59 - Pandu / @pandu_golf

01/05/2014 at 10:16AM

10
#60 - Xelrifos / @Xelrifos

02/22/2014 at 08:37PM