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 142 remaining solutions by signing in and submitting your own entry
#143 Bart of Denver / @bartofdenver - Score: 12 - 08/12/13 @ 15:33
2WD3WP<Right>D<Up>pZZ

0 comments

#144 James / @Dronak - Score: 12 - 08/29/13 @ 15:43
2WDjlPlDkpZZ

0 comments

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

0 comments

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

0 comments

#147 ryk / @rykarn - Score: 12 - 05/02/14 @ 20:30
fSDjwvepkpZZ

0 comments

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

0 comments

#149 Adam Redfern / @AdmRedfern - Score: 12 - 12/23/14 @ 09:31
2WD3WP<Right>D<Up>pZZ

0 comments

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

0 comments

#151 Yi EungJun / @semtlnori - Score: 13 - 12/26/12 @ 06:59
fSd$jpld$kpZZ

0 comments

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

0 comments

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

0 comments

#154 Steven Herbst / @transistorman - Score: 13 - 02/24/13 @ 23:56
$diwjlvwpkpZZ

0 comments

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

0 comments

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

0 comments

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

0 comments

#158 Dimiter Petrov / @crackofdusk - Score: 13 - 10/12/13 @ 18:06
fSdEjpldEkpZZ

0 comments

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

0 comments

#160 Tj / @yrddy - Score: 13 - 08/19/14 @ 06:59
2WdWjpld$kpZZ

0 comments

#161 SilentFl / @Silent_Fl - Score: 13 - 02/06/15 @ 14:06
fSd$jpld$kpZZ

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

#166 Pradeep Kumar / @pradeep6kumar - Score: 15 - 12/25/12 @ 16:29
fSdawjpldawkpZZ

0 comments

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

0 comments

#168 Eric Kelly / @HeroicEric - Score: 16 - 05/30/13 @ 00:10
<C-C><C-C>$vbxjpld$kp:x<CR>

0 comments

#169 XGOLFER / @vimg0lfer - Score: 17 - 01/05/13 @ 02:06
fSdfSjPldt_kF_PZZ

0 comments

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

0 comments

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

0 comments

#172 Florian Guilbert / @flgy - Score: 18 - 12/29/12 @ 21:20
$bdf_jhpldf_kbhpZZ

0 comments

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

0 comments

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

0 comments

#175 Eric Andres / @eric_m_andres - Score: 21 - 12/21/12 @ 03:54
fCywfSvep+fSywfCvePZZ

0 comments

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

0 comments

#177 Chirag Tailor / @ctailor2 - Score: 31 - 01/29/14 @ 05:42
fCywfSviwpjFSOLu<Esc>ubywfCviwp:wq<CR>

0 comments

#178 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: @dasickis

178 active golfers, 400 entries

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

12/19/2012 at 01:47AM

10
#2 - Tim Chase / @gumnos

12/19/2012 at 01:55AM

10
#3 - Kerson Hsiao / @KersonHsiao

12/19/2012 at 02:47AM

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

12/19/2012 at 07:33AM

10
#5 - Conner McDaniel / @connermcd

12/19/2012 at 12:16PM

10
#6 - n0nick / @n0nick

12/19/2012 at 01:02PM

10
#7 - Taylor Rose / @trose89

12/19/2012 at 11:47PM

10
#8 - Hubba / @HubbaBubbaFett

12/20/2012 at 04:10PM

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

12/20/2012 at 04:13PM

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

12/21/2012 at 04:35AM

10
#11 - Marco Hinz / @_mhinz_

12/21/2012 at 10:29AM

10
#12 - Victor Ramirez / @virako

12/21/2012 at 11:10AM

10
#13 - Marcin Sza / @coot_

12/21/2012 at 01:56PM

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

12/21/2012 at 02:24PM

10
#15 - Marko Tibold / @markotibold

12/21/2012 at 11:31PM

10
#16 - Kajetan Bojko / @KajetanBojko

12/22/2012 at 04:53PM

10
#17 - jk / @kewnapse

12/23/2012 at 12:01AM

10
#18 - Toto l'haricot / @nico_le_terribl

12/26/2012 at 09:25AM

10
#19 - Daniel Baldwin / @danielcbaldwin

12/27/2012 at 05:02PM

10
#20 - Kevin Lin / @kevins8

01/03/2013 at 06:25AM

10
#21 - Yavor Atov / @YavorAtOff

01/03/2013 at 01:06PM

10
#22 - Benjamin Thomas / @PryFlack

01/06/2013 at 12:55AM

10
#23 - Asmund Liseth / @Asmund_L

01/13/2013 at 05:52PM

10
#24 - r / @tricosahedron

01/13/2013 at 11:00PM

10
#25 - たいちょ / @alpaca_taichou

01/15/2013 at 09:31AM

10
#26 - zealotrush / @zealotrush

01/28/2013 at 10:19AM

10
#27 - Taro Yamada / @t_yamada8karad

01/29/2013 at 08:05AM

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

01/31/2013 at 12:57AM

10
#29 - Antti Rasmus / @antrasmus

01/31/2013 at 08:01PM

10
#30 - Steve Tjoa / @stevetjoa

02/03/2013 at 10:55PM

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 - A / @a_akessler

05/17/2013 at 12:13AM

10
#42 - wushexu / @wushexu

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 - Matt 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

10
#61 - D / @justcallmedrago

02/23/2014 at 02:52AM

10
#62 - Thomas GUILLORY / @thomasguillory

02/28/2014 at 01:18PM

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

02/28/2014 at 01:18PM

10
#64 - vimgolf copycat / @vimgolf_copycat

03/08/2014 at 06:23PM

10
#65 - John Braxler / @braxler

04/02/2014 at 06:18PM

10
#66 - ZorgroZ / @ZorgroZ

04/12/2014 at 04:02PM

10
#67 - lastsseldon / @lastsseldon

05/11/2014 at 09:08PM

10
#68 - John Meisner / @jmeisned

06/27/2014 at 05:26PM

10
#69 - Joey Twiddle / @joeytwiddle

07/19/2014 at 07:00PM

10
#70 - Eric Kever / @codeoverlode

09/30/2014 at 05:49PM

10
#71 - eBrnd / @eBrnd

11/05/2014 at 09:13PM

10
#72 - kimber gonzalez / @kimberlycreates

02/06/2015 at 07:55PM

10
#73 - mark0829 / @mark0829

03/05/2015 at 01:29AM

10
#74 - TheProgrammer971 / @tp971

03/14/2015 at 03:45PM

10
#75 - Adrien Fabre / @statox42

05/14/2015 at 05:30PM

10
#76 - Evan Coleman / @edc1591

06/19/2015 at 08:58PM

10
#77 - Ásgeir Bjarnason / @abjarnasn

07/25/2015 at 10:30PM

10
#78 - Dan Moldovan / @Lenea92

08/31/2015 at 11:05AM

11
#79 - DR / @dde81

12/18/2012 at 09:08PM

11
#80 - Ricardo Mendes / @locks

12/18/2012 at 09:09PM

11
#81 - Zarak / @z0k

12/19/2012 at 11:32AM

11
#82 - joe di castro / @joe_di_castro

12/19/2012 at 12:12PM

11
#83 - すー / @cubebit

12/19/2012 at 01:23PM

11
#84 - buz / @buzbone

12/20/2012 at 11:43AM

11
#85 - Xinruo Sun / @xiaoruoruo

12/22/2012 at 12:31PM

11
#86 - Matt Garriott / @GarriottMatt

12/27/2012 at 12:28AM

11
#87 - cheerfulstoic / @cheerfulstoic

12/28/2012 at 09:00PM

11
#88 - Tetsuya Matsuyama / @m_tetsuya

12/30/2012 at 12:57PM

11
#89 - Khoi Tran / @khoitran19

01/02/2013 at 05:07PM

11
#90 - Alec Goebel / @zego5360

01/04/2013 at 03:48AM

11
#91 - Filip / @fylyps_tw

01/05/2013 at 01:18PM

11
#92 - Vasil Sakarov / @vsakarov

01/07/2013 at 12:34PM

11
#93 - Peter Xiao / @PterXiao

01/23/2013 at 04:57AM

11
#94 - CY / @wongcy0

01/27/2013 at 09:47AM

11
#95 - Christopher Harrison / @Xophmeister

01/28/2013 at 12:13PM

11
#96 - fabiano taddei / @Brodoblu

02/03/2013 at 04:21PM

11
#97 - Matt Redding / @MattRedding

02/18/2013 at 10:54AM

11
#98 - Ilya Loginov / @_zerone_

02/24/2013 at 10:18PM

11
#99 - Andrés Llopis / @andreselsuave

03/04/2013 at 01:16AM

11
#100 - Niil Öhlin / @Niil94

03/04/2013 at 09:33PM

11
#101 - Bailey Ling / @blingcoder

03/09/2013 at 04:16AM

11
#102 - mazemult / @mazemult

03/10/2013 at 08:25PM

11
#103 - vimgolfthrowaway / @vimgolfthrowawa

03/30/2013 at 06:17AM

11
#104 - JR Tashjian / @jrtashjian

04/18/2013 at 06:04PM

11
#105 - Justin / @justinjaffray

04/23/2013 at 01:59AM

11
#106 - Mike Anderson / @mrmikea

04/26/2013 at 09:36PM

11
#107 - Chase Stubblefield / @sterlingchase

04/27/2013 at 10:05AM

11
#108 - Sean Anderson / @sean_anderson

04/29/2013 at 09:49AM

11
#109 - RobertT / @techrt2050

07/10/2013 at 10:32AM

11
#110 - cj / @cj01101

08/08/2013 at 11:44AM

11
#111 - Nathan / @NathanHarperoni

08/08/2013 at 01:53PM

11
#112 - Timothée Gauthier / @zmf_tim

08/31/2013 at 11:32PM

11
#113 - brett / @brettyukich

09/21/2013 at 06:22AM

11
#114 - Oliver Christ / @0liverChrist

09/25/2013 at 02:53PM

11
#115 - NuM / @NuM314

10/05/2013 at 10:44PM

11
#116 - newton / @newtonsmartt

10/16/2013 at 05:55PM

11
#117 - US Dollar Price / @USDollarPrice

11/06/2013 at 07:17AM

11
#118 - Edgar Hipp / @EdgarHipp

11/14/2013 at 08:16PM

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

11/28/2013 at 11:37PM

11
#120 - pikaren / @REALpikaren

01/07/2014 at 03:54AM

11
#121 - jgpaiva / @jgpaiva

01/31/2014 at 12:53PM

11
#122 - Matthew M. Keeler / @keelerm84

02/02/2014 at 05:54AM

11
#123 - Joonas Pihlajamaa / @jokkebk

02/20/2014 at 10:46AM

11
#124 - devper94 / @devper94

03/16/2014 at 09:38AM

11
#125 - Patrick Oscity / @der_padde

03/26/2014 at 12:45PM

11
#126 - Brian Olpin / @bolpin

04/01/2014 at 04:07AM

11
#127 - RB / @powerage88

04/20/2014 at 04:04PM

11
#128 - Ram Tamtam / @ramtamtamtam

07/05/2014 at 12:54PM

11
#129 - RiccardoSven Risuleo / @riccardosven

07/18/2014 at 10:13PM

11
#130 - Leeren / @Leeren

08/10/2014 at 06:41AM

11
#131 - Patrick Pitoscia / @Patrick03960431

08/10/2014 at 08:38PM

11
#132 - Jose Gutierrez / @Jogusa

10/22/2014 at 08:12PM

11
#133 - pftb12345 / @pftb12345

04/11/2015 at 01:49PM

11
#134 - François Marais / @maraisf

05/21/2015 at 06:50PM

11
#135 - Raj / @brshenoy

06/19/2015 at 08:49PM

12
#136 - Ravi S Sinha / @ambidextrousTx

12/19/2012 at 07:04AM

12
#137 - Kubek2k / @kubek2k

12/31/2012 at 10:45AM

12
#138 - Bertie Wooster / @bxwooster

01/04/2013 at 01:51PM

12
#139 - fumi komi / @kommy_vx

03/28/2013 at 05:13AM

12
#140 - Jesse Nazario / @JesseNazario

04/18/2013 at 01:48PM

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

07/15/2013 at 04:48AM

12
#142 - A / @Tower_1980

08/02/2013 at 11:36AM

12
#143 - Bart of Denver / @bartofdenver

08/12/2013 at 03:33PM

12
#144 - James / @Dronak

08/29/2013 at 03:43PM

12
#145 - Hachez Floran / @FloranHachez

09/03/2013 at 08:16PM

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

03/21/2014 at 12:59PM

12
#147 - ryk / @rykarn

05/02/2014 at 08:30PM

12
#148 - Rathrio / @Rathrio

09/02/2014 at 12:12PM

12
#149 - Adam Redfern / @AdmRedfern

12/23/2014 at 09:31AM

13
#150 - Pawel Obrok / @mrYapee

12/21/2012 at 12:59PM

13
#151 - Yi EungJun / @semtlnori

12/26/2012 at 06:59AM

13
#152 - Global Maquereau / @GlobalMaquereau

12/26/2012 at 09:04AM

13
#153 - Runar / @runarfu

01/12/2013 at 09:45AM

13
#154 - Steven Herbst / @transistorman

02/24/2013 at 11:56PM

13
#155 - Matt Robbins / @mcrmfc

03/29/2013 at 10:59PM

13
#156 - Piotr Śniegowski / @PiotrSniegowski

06/05/2013 at 08:28PM

13
#157 - Fernando Axel Ellis / @Axel_Ellis

10/02/2013 at 09:45PM

13
#158 - Dimiter Petrov / @crackofdusk

10/12/2013 at 06:06PM

13
#159 - Quota / @Quotad

01/10/2014 at 04:34PM

13
#160 - Tj / @yrddy

08/19/2014 at 06:59AM

13
#161 - SilentFl / @Silent_Fl

02/06/2015 at 02:06PM

14
#162 - vg41 / @vg41

12/21/2012 at 10:02AM

14
#163 - Øystein Walle / @oysteinwalle

01/30/2013 at 10:28PM

14
#164 - foo / @foo88832727

10/18/2013 at 08:53PM

14
#165 - Daniel Low / @deniallow

08/07/2014 at 10:52PM

15
#166 - Pradeep Kumar / @pradeep6kumar

12/25/2012 at 04:29PM

15
#167 - mhb / @mhbvim

05/24/2013 at 10:33AM

16
#168 - Eric Kelly / @HeroicEric

05/30/2013 at 12:10AM

17
#169 - XGOLFER / @vimg0lfer

01/05/2013 at 02:06AM

17
#170 - Eric Potter / @pottereric

05/27/2013 at 05:43PM

17
#171 - Daniel Gray / @DanielFGray

10/19/2013 at 04:17PM

18
#172 - Florian Guilbert / @flgy

12/29/2012 at 09:20PM

18
#173 - matthew keesan / @keesan

03/06/2013 at 06:58PM

20
#174 - Lieven Keersmaekers / @LievenKeersmaek

12/20/2012 at 03:31PM

21
#175 - Eric Andres / @eric_m_andres

12/21/2012 at 03:54AM

24
#176 - wilddog64 / @chengkai318

12/17/2013 at 09:23PM

31
#177 - Chirag Tailor / @ctailor2

01/29/2014 at 05:42AM

101
#178 - hasiotis / @hasiotis

04/16/2013 at 08:56PM