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 4d1b76d9c58eaa2a8a000866

Context insensitive completion 0

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

Start file
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Add this line!
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
End file
Add this line!
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Add this line!
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.
Do not add this line.

View Diff

0a1
> Add this line!

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 160 remaining solutions by signing in and submitting your own entry
#161 Geoff Longman / metageoff - Score: 9 - 03/29/13 @ 15:18
/A<CR>Y``PZZ

0 comments


#162 Kathryn / hartknyx - Score: 9 - 05/21/13 @ 05:27
/A<CR>YggPZZ

0 comments


#163 Tullio Facchinetti / toolleeo - Score: 9 - 07/25/13 @ 21:06
:102t0<CR>ZZ

0 comments


#164 A / Tower_1980 - Score: 9 - 07/29/13 @ 13:51
/A<CR>YggPZZ

0 comments


#165 Ram Tamtam / ramtamtamtam - Score: 9 - 07/02/14 @ 12:17
:102t0|x<CR>

0 comments


#166 Justin Knag / justinknag - Score: 9 - 08/28/14 @ 17:01
/A<CR>YggPZZ

0 comments


#167 Matt Robbins / mcrmfc - Score: 9 - 12/02/14 @ 06:31
:102y<CR>PZZ

0 comments


#168 Ψαροκροκέτα / psarokroketa - Score: 9 - 07/29/17 @ 15:09
:102t0<CR>ZZ

0 comments


#169 Paul Draghicescu / pdragy - Score: 9 - 03/22/18 @ 22:46
/A<CR>YggPZZ

0 comments


#170 arungn / arungn - Score: 10 - 12/29/10 @ 18:49
/A<CR>yy1GPZZ

0 comments


#171 Tom Adams / holizz - Score: 10 - 12/29/10 @ 19:05
/A<CR>yyggPZZ

0 comments


#172 Asís García / asischao - Score: 10 - 12/29/10 @ 19:50
OA<C-X><C-L><Esc>ZZ

0 comments


#173 Jan B. / bracki - Score: 10 - 12/29/10 @ 22:51
dG"*pZZ

0 comments


#174 akatz / akatz - Score: 10 - 12/30/10 @ 07:07
/A<CR>YggP:x<CR>

0 comments


#175 Marco Fontani / mfontani - Score: 10 - 12/30/10 @ 17:18
102GY1GPZZ

0 comments


#176 Guillaume Bonnoron / gbonnoron - Score: 10 - 12/30/10 @ 17:31
102GY1GPZZ

0 comments


#177 Dezső Zoltán / zakiazigazi - Score: 10 - 12/30/10 @ 22:54
102GYggPZZ

0 comments


#178 drio / drio - Score: 10 - 01/02/11 @ 14:32
/A<CR>YggP:x<CR>

0 comments


#179 Thomas Schönwälder / Masei1988 - Score: 10 - 01/22/11 @ 22:14
:102co0<CR>ZZ

0 comments


#180 Matthieu Honel / ocus - Score: 10 - 01/28/11 @ 08:32
102GYggPZZ

0 comments


#181 mightyfoo / mightyfoo - Score: 10 - 05/26/11 @ 11:09
:102co0|x<CR>

0 comments


#182 Christopher Brew / Seph1rothVII - Score: 10 - 01/31/12 @ 21:49
102GYggPZZ

0 comments


#183 Underhill Labs / underhilllabs - Score: 10 - 11/06/12 @ 02:30
/^a<CR>Y1GPZZ

0 comments


#184 うえっち / uh_tomo - Score: 10 - 12/05/12 @ 07:55
/A<CR>yyggPZZ

0 comments


#185 Brent Carmer / brent_carmer - Score: 10 - 04/12/13 @ 05:45
:g/!/t0<CR>ZZ

0 comments


#186 Oliver Christ / 0liverChrist - Score: 10 - 10/07/13 @ 21:13
/A<CR>yyggPZZ

0 comments


#187 alex scott / 4l3xsc0tt - Score: 12 - 12/30/10 @ 01:54
:102y<CR>PZZ

0 comments


#188 Alex Hammel / AlexJHammel - Score: 12 - 12/24/12 @ 17:08
d2w~$r!wYPZZ

0 comments


#189 manlon / manlon - Score: 13 - 12/29/10 @ 18:06
/A<CR>yyggPZZ

0 comments


#190 sinclair bain / sinclairbain - Score: 13 - 12/29/10 @ 18:12
/A<CR>yyggPZZ

0 comments


#191 Andrew McDonough / andrewmcdonough - Score: 13 - 12/29/10 @ 19:12
102GYggPZZ

0 comments


#192 Matti Kotsalainen / mkotsalainen - Score: 13 - 12/29/10 @ 19:48
/A<CR>yyggPZZ

0 comments


#193 Joe Hassick / jhassick - Score: 13 - 12/29/10 @ 19:51
/A<CR>yyggPZZ

0 comments


#194 Adam / arboooz - Score: 13 - 12/29/10 @ 21:15
/A<CR>VyggPZZ

0 comments


#195 Olivier El Mekki / oelmekki - Score: 14 - 12/29/10 @ 18:07
102GYggP:x<CR>

0 comments


#196 DJ Adams / qmacro - Score: 14 - 12/29/10 @ 18:11
/A<CR>yyggP:x<CR>

0 comments


#197 Sid Kasivajhula / CountVajhula - Score: 14 - 12/29/10 @ 21:12
/A<CR>YggP:wq<CR>

0 comments


#198 ryanmusicman / ryanmusicman - Score: 14 - 12/29/10 @ 21:25
:102y<CR>P:wq<CR>

0 comments


#199 Josh Stephenson / frivolousjosh - Score: 16 - 12/29/10 @ 20:22
/^A<CR>VyggP:wq<CR>

0 comments


#200 Marek Šuppa / mr__shu - Score: 22 - 12/29/10 @ 20:33
iAdd this line!<CR><Esc>ZZ

0 comments


#201 Josh Gilmour / joshgilmour - Score: 24 - 12/29/10 @ 19:17
iAdd this line!<CR><Esc>:wq<CR>

0 comments


Created by: wolever

201 active golfers, 430 entries

Leaderboard (lowest score wins):
7
#1 - kana / kana1

12/29/2010 at 06:44PM

7
#2 - Rémi Prévost / remi

12/29/2010 at 06:58PM

7
#3 - Aaron Bull Schaefer / elasticdog

12/29/2010 at 07:25PM

7
#4 - Matt Mendell / mpmendell

12/29/2010 at 07:58PM

7
#5 - Austin Taylor / austintaylor

12/29/2010 at 08:04PM

7
#6 - kuhout / kuhout

12/29/2010 at 08:06PM

7
#7 - Adam Pohorecki / apohorecki

12/29/2010 at 08:32PM

7
#8 - clint tseng / cxlt

12/29/2010 at 08:59PM

7
#9 - Mike Plotz / antisuji

12/29/2010 at 11:27PM

7
#10 - uuu / uu59

12/30/2010 at 01:43AM

7
#11 - Matthew Draper / _matthewd

12/30/2010 at 01:51AM

7
#12 - Ankit Shankar / thelastnode

12/30/2010 at 09:52AM

7
#13 - Brad / bjjwillis

12/30/2010 at 10:04AM

7
#14 - Benoit D / Anbcorp

12/30/2010 at 03:43PM

7
#15 - Dhruva Sagar / dhruvasagar

12/30/2010 at 05:19PM

7
#16 - Juan C. Muller / juancmuller

12/31/2010 at 04:04AM

7
#17 - Balkoth / _Balkoth_

12/31/2010 at 06:27PM

7
#18 - Joshua Flanagan / jflanagan

12/31/2010 at 11:47PM

7
#19 - Lee Marlow / lmarlow

01/01/2011 at 06:09AM

7
#20 - Pete Johns / johnsyweb

01/02/2011 at 12:01PM

7
#21 - Pierre / Pihour

01/02/2011 at 04:29PM

7
#22 - Clément Nodet / clementnodet

01/03/2011 at 10:52PM

7
#23 - proglottis / proglottis

01/06/2011 at 05:53AM

7
#24 - Wei Dai / clvv42

01/06/2011 at 10:41AM

7
#25 - Ujjwol Lamichhane / Ujjwol

01/06/2011 at 01:17PM

7
#26 - dominique pellé / vimgolfisto

01/06/2011 at 11:28PM

7
#27 - Tim Chase / gumnos

01/07/2011 at 11:47PM

7
#28 - Douglas Stockwell / dstockwell

01/08/2011 at 08:42PM

7
#29 - derp derp / derp__

01/09/2011 at 03:25AM

7
#30 - Toto l'haricot / nico_le_terribl

01/09/2011 at 12:05PM