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
#151 - NuM / @NuM314

10/05/2013 at 10:44PM

11
#152 - newton / @newtonsmartt

10/16/2013 at 05:55PM

11
#153 - US Dollar Price / @USDollarPrice

11/06/2013 at 07:17AM

11
#154 - Edgar Hipp / @EdgarHipp

11/14/2013 at 08:16PM

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

11/28/2013 at 11:37PM

11
#156 - pikaren / @REALpikaren

01/07/2014 at 03:54AM

11
#157 - João Paiva / @jgpaiva

01/31/2014 at 12:53PM

11
#158 - Matthew M. Keeler / @keelerm84

02/02/2014 at 05:54AM

11
#159 - Joonas Pihlajamaa / @jokkebk

02/20/2014 at 10:46AM

11
#160 - devper94 / @devper94

03/16/2014 at 09:38AM

11
#161 - Patrick Oscity / @der_padde

03/26/2014 at 12:45PM

11
#162 - Brian Olpin / @bolpin

04/01/2014 at 04:07AM

11
#163 - RB / @powerage88

04/20/2014 at 04:04PM

11
#164 - Ram Tamtam / @ramtamtamtam

07/05/2014 at 12:54PM

11
#165 - RiccardoSven Risuleo / @riccardosven

07/18/2014 at 10:13PM

11
#166 - LC / @leeren

08/10/2014 at 06:41AM

11
#167 - Patrick Pitoscia / @Patrick03960431

08/10/2014 at 08:38PM

11
#168 - Jose Gutierrez / @Jogusa

10/22/2014 at 08:12PM

11
#169 - pftb12345 / @pftb12345

04/11/2015 at 01:49PM

11
#170 - Francois Marais / @maraisf

05/21/2015 at 06:50PM

11
#171 - Raj / @brshenoy

06/19/2015 at 08:49PM

11
#172 - Gerald Tilma / @GeraldTilma

10/22/2015 at 02:07AM

11
#173 - Ryan Marcotte / @ryanjmarcotte

11/16/2015 at 02:46PM

11
#174 - Johannes K / @JohannesK9

11/26/2015 at 11:47PM

11
#175 - fuck GFW / @ravishGFW

01/06/2016 at 04:48AM

11
#176 - Cristian Lupașcu / @clupasq

02/28/2016 at 04:16PM

11
#177 - Dimitar Dimitrov / @kurkale6ka

03/22/2016 at 02:40PM

11
#178 - Daniel Teal / @coelestinian

08/31/2016 at 08:48PM

11
#179 - Reinaldo Astudillo / @astudillor

03/23/2017 at 09:40AM

11
#180 - jakeroberts / @jakeroberts

05/28/2017 at 02:42PM