Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Leaderboard, 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 132 remaining solutions by signing in and submitting your own entry
#133 James / @Dronak - Score: 12 - 08/29/13 @ 08:43
2WDjlPlDkpZZ

0 comments

#134 Hachez Floran / @FloranHachez - Score: 12 - 09/03/13 @ 13:16
<CR>fSDjplDkpZZ

0 comments

#135 Va bien te faire fou / @mplayer_vimgolf - Score: 12 - 03/21/14 @ 05:59
$diwjplDkpZZ

0 comments

#136 ryk / @rykarn - Score: 12 - 05/02/14 @ 13:30
fSDjwvepkpZZ

0 comments

#137 Rathrio / @Rathrio - Score: 12 - 09/02/14 @ 05:12
fSDjplDkp:x<CR>

0 comments

#138 Pawel Obrok / @mrYapee - Score: 13 - 12/21/12 @ 04:59
fSdwjwvwpkpZZ

0 comments

#139 Yi EungJun / @semtlnori - Score: 13 - 12/25/12 @ 22:59
fSd$jpld$kpZZ

0 comments

#140 Global Maquereau / @GlobalMaquereau - Score: 13 - 12/26/12 @ 01:04
fSd$jpld$kpZZ

0 comments

#141 Runar / @runarfu - Score: 13 - 01/12/13 @ 01:45
/ <CR>d$nv$pkpZZ

0 comments

#142 Steven Herbst / @transistorman - Score: 13 - 02/24/13 @ 15:56
$diwjlvwpkpZZ

0 comments

#143 Matt Robbins / @mcrmfc - Score: 13 - 03/29/13 @ 15:59
f=d$jpld$kpZZ

0 comments

#144 Piotr Śniegowski / @PiotrSniegowski - Score: 13 - 06/05/13 @ 13:28
fSdejlvepkpZZ

0 comments

#145 Fernando Axel Ellis / @Axel_Ellis - Score: 13 - 10/02/13 @ 14:45
$vbd<Down><Right>vEp<Up>pZZ

0 comments

#146 Dimiter Petrov / @crackofdusk - Score: 13 - 10/12/13 @ 11:06
fSdEjpldEkpZZ

0 comments

#147 Quota / @Quotad - Score: 13 - 01/10/14 @ 08:34
fSC<C-P><Esc>jciw<C-P><Esc>ZZ

0 comments

#148 Tj / @yrddy - Score: 13 - 08/18/14 @ 23:59
2WdWjpld$kpZZ

0 comments

#149 vg41 / @vg41 - Score: 14 - 12/21/12 @ 02:02
fSd$jlPld$kpZZ

0 comments

#150 Øystein Walle / @oysteinwalle - Score: 14 - 01/30/13 @ 14:28
$ciw<C-P><Esc>jciw<C-P><Esc>ZZ

0 comments

#151 foo / @foo88832727 - Score: 14 - 10/18/13 @ 13:53
fSCC<C-N><Esc>jbCS<C-N><Esc>ZZ

0 comments

#152 Daniel Low / @deniallow - Score: 14 - 08/07/14 @ 15:52
fSDjlv$pi<Esc>kpZZ

0 comments

#153 Pradeep Kumar / @pradeep6kumar - Score: 15 - 12/25/12 @ 08:29
fSdawjpldawkpZZ

0 comments

#154 mhb / @mhbvim - Score: 15 - 05/24/13 @ 03:33
$vbxjlPlv$xkpZZ

0 comments

#155 Eric Kelly / @HeroicEric - Score: 16 - 05/29/13 @ 17:10
<C-C><C-C>$vbxjpld$kp:x<CR>

0 comments

#156 XGOLFER / @vimg0lfer - Score: 17 - 01/04/13 @ 18:06
fSdfSjPldt_kF_PZZ

0 comments

#157 Eric Potter / @pottereric - Score: 17 - 05/27/13 @ 10:43
qq4wyw3wvepq+@qZZ

0 comments

#158 Daniel Gray / @DanielFGray - Score: 17 - 10/19/13 @ 09:17
WlldWjpldWkPup<Esc>ZZ

0 comments

#159 Florian Guilbert / @flgy - Score: 18 - 12/29/12 @ 13:20
$bdf_jhpldf_kbhpZZ

0 comments

#160 matthew keesan / @keesan - Score: 18 - 03/06/13 @ 10:58
/_<CR>ndbjPlvnhxkbPZZ

0 comments

#161 Lieven Keersmaekers / @LievenKeersmaek - Score: 20 - 12/20/12 @ 07:31
2@='f_yiw$viwpj0'<CR>ZZ

0 comments

#162 Eric Andres / @eric_m_andres - Score: 21 - 12/20/12 @ 19:54
fCywfSvep+fSywfCvePZZ

0 comments

#163 wilddog64 / @chengkai318 - Score: 24 - 12/17/13 @ 13:23
fS"aDj"bDA <C-R>a<Esc>ka<C-R>b<Esc>BhxZZ

0 comments

#164 Chirag Tailor / @ctailor2 - Score: 31 - 01/28/14 @ 21:42
fCywfSviwpjFSOLu<Esc>ubywfCviwp:wq<CR>

0 comments

#165 hasiotis / @hasiotis - Score: 101 - 04/16/13 @ 13: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: @dasickis

165 active golfers, 364 entries

Leaderboard (lowest score wins):
10
#1 - Urtica dioica / @udioica

12/18/2012 at 05:47PM

10
#2 - Tim Chase / @gumnos

12/18/2012 at 05:55PM

10
#3 - Kerson Hsiao / @KersonHsiao

12/18/2012 at 06:47PM

10
#4 - Édouard M'tou / @DouardM

12/18/2012 at 11:33PM

10
#5 - Conner McDaniel / @connermcd

12/19/2012 at 04:16AM

10
#6 - n0nick / @n0nick

12/19/2012 at 05:02AM

10
#7 - Taylor Rose / @trose89

12/19/2012 at 03:47PM

10
#8 - Hubba / @HubbaBubbaFett

12/20/2012 at 08:10AM

10
#9 - 無ん垢の叫び / @john_ababa

12/20/2012 at 08:13AM

10
#10 - h_east (DDD ready) / @h_east

12/20/2012 at 08:35PM

10
#11 - Marco Hinz / @_mhinz_

12/21/2012 at 02:29AM

10
#12 - Victor Ramirez / @virako

12/21/2012 at 03:10AM

10
#13 - Marcin Sza / @coot_

12/21/2012 at 05:56AM

10
#14 - Jiří Chára / @JiriChara

12/21/2012 at 06:24AM

10
#15 - Marko Tibold / @markotibold

12/21/2012 at 03:31PM

10
#16 - Kajetan Bojko / @KajetanBojko

12/22/2012 at 08:53AM

10
#17 - jk / @kewnapse

12/22/2012 at 04:01PM

10
#18 - Toto l'haricot / @nico_le_terribl

12/26/2012 at 01:25AM

10
#19 - Daniel Baldwin / @danielcbaldwin

12/27/2012 at 09:02AM

10
#20 - Kevin Lin / @kevins8

01/02/2013 at 10:25PM

10
#21 - Yavor Atov / @YavorAtOff

01/03/2013 at 05:06AM

10
#22 - Benjamin Thomas / @PryFlack

01/05/2013 at 04:55PM

10
#23 - Asmund Liseth / @Asmund_L

01/13/2013 at 09:52AM

10
#24 - r / @tricosahedron

01/13/2013 at 03:00PM

10
#25 - たいちょ / @alpaca_taichou

01/15/2013 at 01:31AM

10
#26 - zealotrush / @zealotrush

01/28/2013 at 02:19AM

10
#27 - Taro Yamada / @t_yamada8karad

01/29/2013 at 12:05AM

10
#28 - Adelar S. Queiróz / @adelarsq

01/30/2013 at 04:57PM

10
#29 - Antti Rasmus / @antrasmus

01/31/2013 at 12:01PM

10
#30 - Steve Tjoa / @stevetjoa

02/03/2013 at 02:55PM

10
#31 - shpoont / @shpoont

02/05/2013 at 08:43AM

10
#32 - N / @nymph192

02/11/2013 at 01:48PM

10
#33 - Kai Yuan / @kentyuan

02/21/2013 at 01:23PM

10
#34 - Joel Elkins / @dice_tea

03/02/2013 at 07:45PM

10
#35 - Trevor Powell / @DoomedBunnies

03/19/2013 at 08:25PM

10
#36 - Mr. Mackey / @MackdaddyJunior

03/27/2013 at 11:42AM

10
#37 - gnobbles / @gnobbles

03/30/2013 at 06:48PM

10
#38 - John Smith / @c2kdev21

04/02/2013 at 12:29PM

10
#39 - Gtranbot / @gtranbot

04/27/2013 at 04:01AM

10
#40 - Al Stanforth / @AlStanforth

05/01/2013 at 06:29AM

10
#41 - A / @a_akessler

05/16/2013 at 05:13PM

10
#42 - wushexu / @wushexu

05/24/2013 at 09:09AM

10
#43 - Lance Levine / @LanceSMLevine

05/24/2013 at 11:30PM

10
#44 - Stefan Leszkiewicz / @stefanlz

05/30/2013 at 01:01AM

10
#45 - Petro Тrouq / @zulolosi

06/03/2013 at 01:50PM

10
#46 - powertomato / @powertomato

06/27/2013 at 02:30PM

10
#47 - James Scriven / @JamesDScriven

07/06/2013 at 03:53PM

10
#48 - Bradd Szonye / @bszonye

07/12/2013 at 06:14PM

10
#49 - Matt Cook / @mattcook08

07/16/2013 at 02:34PM

10
#50 - Aaron Bieber / @aaronbieber

07/17/2013 at 04:11PM

10
#51 - _ky_ / @ultimate_ky

08/13/2013 at 10:34PM

10
#52 - Stephen Drodge / @sjdrodge

10/07/2013 at 04:57PM

10
#53 - Casey Dwyer / @caseydwyer

11/03/2013 at 06:57PM

10
#54 - Fontaine Kévin / @DotSlash974

11/16/2013 at 10:54AM

10
#55 - Stefan Schmidt / @stafue

12/06/2013 at 06:30AM

10
#56 - Ian Laird / @irlaird

12/13/2013 at 08:49AM

10
#57 - Andrew O'Neill / @AndroidOatmeal

12/19/2013 at 07:27AM

10
#58 - Yann Moisan / @YannMoisan

01/01/2014 at 05:25PM

10
#59 - Pandu / @pandu_golf

01/05/2014 at 02:16AM

10
#60 - Xelrifos / @Xelrifos

02/22/2014 at 12:37PM

10
#61 - D / @justcallmedrago

02/22/2014 at 06:52PM

10
#62 - Thomas GUILLORY / @thomasguillory

02/28/2014 at 05:18AM

10
#63 - Marchand Paul-Valère / @pvmarch

02/28/2014 at 05:18AM

10
#64 - vimgolf copycat / @vimgolf_copycat

03/08/2014 at 10:23AM

10
#65 - John Braxler / @braxler

04/02/2014 at 11:18AM

10
#66 - ZorgroZ / @ZorgroZ

04/12/2014 at 09:02AM

10
#67 - lastsseldon / @lastsseldon

05/11/2014 at 02:08PM

10
#68 - John Meisner / @jmeisned

06/27/2014 at 10:26AM

10
#69 - Joey Twiddle / @joeytwiddle

07/19/2014 at 12:00PM

10
#70 - Eric Kever / @codeoverlode

09/30/2014 at 10:49AM

11
#71 - DR / @dde81

12/18/2012 at 01:08PM

11
#72 - Ricardo Mendes / @locks

12/18/2012 at 01:09PM

11
#73 - Zarak / @z0k

12/19/2012 at 03:32AM

11
#74 - joe di castro / @joe_di_castro

12/19/2012 at 04:12AM

11
#75 - すー / @cubebit

12/19/2012 at 05:23AM

11
#76 - buz / @buzbone

12/20/2012 at 03:43AM

11
#77 - Xinruo Sun / @xiaoruoruo

12/22/2012 at 04:31AM

11
#78 - Matt Garriott / @GarriottMatt

12/26/2012 at 04:28PM

11
#79 - cheerfulstoic / @cheerfulstoic

12/28/2012 at 01:00PM

11
#80 - Tetsuya Matsuyama / @m_tetsuya

12/30/2012 at 04:57AM

11
#81 - Khoi Tran / @khoitran19

01/02/2013 at 09:07AM

11
#82 - Alec Goebel / @zego5360

01/03/2013 at 07:48PM

11
#83 - Filip / @fylyps_tw

01/05/2013 at 05:18AM

11
#84 - Vasil Sakarov / @vsakarov

01/07/2013 at 04:34AM

11
#85 - Peter Xiao / @PterXiao

01/22/2013 at 08:57PM

11
#86 - CY / @wongcy0

01/27/2013 at 01:47AM

11
#87 - Christopher Harrison / @Xophmeister

01/28/2013 at 04:13AM

11
#88 - fabiano taddei / @Brodoblu

02/03/2013 at 08:21AM

11
#89 - Matt Redding / @MattRedding

02/18/2013 at 02:54AM

11
#90 - Ilya Loginov / @_zerone_

02/24/2013 at 02:18PM

11
#91 - Andrés Llopis / @andreselsuave

03/03/2013 at 05:16PM

11
#92 - Niil Öhlin / @Niil94

03/04/2013 at 01:33PM

11
#93 - Bailey Ling / @blingcoder

03/08/2013 at 08:16PM

11
#94 - mazemult / @mazemult

03/10/2013 at 01:25PM

11
#95 - vimgolfthrowaway / @vimgolfthrowawa

03/29/2013 at 11:17PM

11
#96 - JR Tashjian / @jrtashjian

04/18/2013 at 11:04AM

11
#97 - Justin / @justinjaffray

04/22/2013 at 06:59PM

11
#98 - Mike Anderson / @mrmikea

04/26/2013 at 02:36PM

11
#99 - Chase Stubblefield / @sterlingchase

04/27/2013 at 03:05AM

11
#100 - Sean Anderson / @sean_anderson

04/29/2013 at 02:49AM

11
#101 - RobertT / @techrt2050

07/10/2013 at 03:32AM

11
#102 - cj / @cj01101

08/08/2013 at 04:44AM

11
#103 - Nathan / @NathanHarperoni

08/08/2013 at 06:53AM

11
#104 - Timothée Gauthier / @zmf_tim

08/31/2013 at 04:32PM

11
#105 - brett / @brettyukich

09/20/2013 at 11:22PM

11
#106 - Oliver Christ / @0liverChrist

09/25/2013 at 07:53AM

11
#107 - NuM / @NuM314

10/05/2013 at 03:44PM

11
#108 - newton / @newtonsmartt

10/16/2013 at 10:55AM

11
#109 - US Dollar Price / @USDollarPrice

11/05/2013 at 11:17PM

11
#110 - Edgar Hipp / @EdgarHipp

11/14/2013 at 12:16PM

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

11/28/2013 at 03:37PM

11
#112 - pikaren / @REALpikaren

01/06/2014 at 07:54PM

11
#113 - jgpaiva / @jgpaiva

01/31/2014 at 04:53AM

11
#114 - Matthew M. Keeler / @keelerm84

02/01/2014 at 09:54PM

11
#115 - Joonas Pihlajamaa / @jokkebk

02/20/2014 at 02:46AM

11
#116 - devper94 / @devper94

03/16/2014 at 02:38AM

11
#117 - Patrick Oscity / @der_padde

03/26/2014 at 05:45AM

11
#118 - Brian Olpin / @bolpin

03/31/2014 at 09:07PM

11
#119 - RB / @powerage88

04/20/2014 at 09:04AM

11
#120 - Ram Tamtam / @ramtamtamtam

07/05/2014 at 05:54AM

11
#121 - RiccardoSven Risuleo / @riccardosven

07/18/2014 at 03:13PM

11
#122 - Leeren / @Leeren

08/09/2014 at 11:41PM

11
#123 - Patrick Pitoscia / @Patrick03960431

08/10/2014 at 01:38PM

11
#124 - Jose Gutierrez / @Jogusa

10/22/2014 at 01:12PM

12
#125 - Ravi S Sinha / @ambidextrousTx

12/18/2012 at 11:04PM

12
#126 - Kubek2k / @kubek2k

12/31/2012 at 02:45AM

12
#127 - Bertie Wooster / @bxwooster

01/04/2013 at 05:51AM

12
#128 - fumi komi / @kommy_vx

03/27/2013 at 10:13PM

12
#129 - Jesse Nazario / @JesseNazario

04/18/2013 at 06:48AM

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

07/14/2013 at 09:48PM

12
#131 - A / @Tower_1980

08/02/2013 at 04:36AM

12
#132 - Bart of Denver / @bartofdenver

08/12/2013 at 08:33AM

12
#133 - James / @Dronak

08/29/2013 at 08:43AM

12
#134 - Hachez Floran / @FloranHachez

09/03/2013 at 01:16PM

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

03/21/2014 at 05:59AM

12
#136 - ryk / @rykarn

05/02/2014 at 01:30PM

12
#137 - Rathrio / @Rathrio

09/02/2014 at 05:12AM

13
#138 - Pawel Obrok / @mrYapee

12/21/2012 at 04:59AM

13
#139 - Yi EungJun / @semtlnori

12/25/2012 at 10:59PM

13
#140 - Global Maquereau / @GlobalMaquereau

12/26/2012 at 01:04AM

13
#141 - Runar / @runarfu

01/12/2013 at 01:45AM

13
#142 - Steven Herbst / @transistorman

02/24/2013 at 03:56PM

13
#143 - Matt Robbins / @mcrmfc

03/29/2013 at 03:59PM

13
#144 - Piotr Śniegowski / @PiotrSniegowski

06/05/2013 at 01:28PM

13
#145 - Fernando Axel Ellis / @Axel_Ellis

10/02/2013 at 02:45PM

13
#146 - Dimiter Petrov / @crackofdusk

10/12/2013 at 11:06AM

13
#147 - Quota / @Quotad

01/10/2014 at 08:34AM

13
#148 - Tj / @yrddy

08/18/2014 at 11:59PM

14
#149 - vg41 / @vg41

12/21/2012 at 02:02AM

14
#150 - Øystein Walle / @oysteinwalle

01/30/2013 at 02:28PM

14
#151 - foo / @foo88832727

10/18/2013 at 01:53PM

14
#152 - Daniel Low / @deniallow

08/07/2014 at 03:52PM

15
#153 - Pradeep Kumar / @pradeep6kumar

12/25/2012 at 08:29AM

15
#154 - mhb / @mhbvim

05/24/2013 at 03:33AM

16
#155 - Eric Kelly / @HeroicEric

05/29/2013 at 05:10PM

17
#156 - XGOLFER / @vimg0lfer

01/04/2013 at 06:06PM

17
#157 - Eric Potter / @pottereric

05/27/2013 at 10:43AM

17
#158 - Daniel Gray / @DanielFGray

10/19/2013 at 09:17AM

18
#159 - Florian Guilbert / @flgy

12/29/2012 at 01:20PM

18
#160 - matthew keesan / @keesan

03/06/2013 at 10:58AM

20
#161 - Lieven Keersmaekers / @LievenKeersmaek

12/20/2012 at 07:31AM

21
#162 - Eric Andres / @eric_m_andres

12/20/2012 at 07:54PM

24
#163 - wilddog64 / @chengkai318

12/17/2013 at 01:23PM

31
#164 - Chirag Tailor / @ctailor2

01/28/2014 at 09:42PM

101
#165 - hasiotis / @hasiotis

04/16/2013 at 01:56PM