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 54862fbb3f90ac0002904cf5

Just the middle

Delete the instructions at the top and bottom.

Start file
Leave only the
numbered lines.
LINE 1
LINE 2
LINE 3
That's all.
Thank you
very much.
End file
LINE 1
LINE 2
LINE 3

View Diff

1,2d0
< Leave only the
< numbered lines.
6,8d3
< That's all.
< Thank you
< very much.

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 4201 remaining solutions by signing in and submitting your own entry
#4202 휘람 / @Brandhwi_0129 - Score: 120 - 06/29/18 @ 08:34
sdj<Down><Right><Left><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>ZZ<BS><BS><Esc>ZZ

@saurabh908583: sdj -- dj make sense it deletes the top 2 lines for me but if I s press sdj it does 'Leave only the' >>>> 'djave only the' ... how did you do it? do you have key map

1 comment


Created by: @udioica

4202 active golfers, 11464 entries

Leaderboard (lowest score wins):
7
#271 - Steffen Köhler / @Baertierchen

05/17/2015 at 10:22PM

7
#272 - Nick Pope / @ngnpope

05/18/2015 at 03:34PM

7
#273 - Rho's SB / @rhossb

05/19/2015 at 03:39AM

7
#274 - Pawan Pawar / @guru_gyaan

05/19/2015 at 04:16AM

7
#275 - Camusensei / @Camusensei

05/19/2015 at 12:39PM

7
#276 - Philippe Voinov / @tehwalris

05/19/2015 at 03:09PM

7
#277 - Mattias Fransson / @azzidoos

05/19/2015 at 06:26PM

7
#278 - Stephen Drodge / @sjdrodge

05/21/2015 at 06:29PM

7
#279 - Endymion / @r3_s0urce

05/21/2015 at 10:14PM

7
#280 - Diego Sevilla Ruiz / @diegosevilla

05/24/2015 at 12:51AM

7
#281 - Jordy van Heeswijk / @JvH1983

05/24/2015 at 07:23AM

7
#282 - 1passenger / @1passenger

05/25/2015 at 07:29PM

7
#283 - Steven Craft / @stevenjohncraft

05/26/2015 at 11:00AM

7
#284 - Ammar Najjar / @ammarnajjar

05/26/2015 at 04:12PM

7
#285 - Fábio Perez / @fabioperez

05/26/2015 at 09:44PM

7
#286 - Julien Campion / @julien_campion

05/27/2015 at 01:13PM

7
#287 - Billy Ripper / @dirtlamb5

05/27/2015 at 08:21PM

7
#288 - Luke Mommaerts / @lmommaerts

05/28/2015 at 04:17AM

7
#289 - Kalle Andreasson / @kalleand

05/28/2015 at 08:42AM

7
#290 - Mike Stewart / @mikrostew

05/28/2015 at 03:46PM

7
#291 - lechariotdor / @lechariotdor

05/28/2015 at 11:18PM

7
#292 - Marc Coquand / @MarcCoquand

05/29/2015 at 10:52AM

7
#293 - Bruce Park / @bpark0

05/30/2015 at 12:20AM

7
#294 - alex / @alexzzp

05/30/2015 at 05:28PM

7
#295 - Marcfyren / @Marcfyren

05/30/2015 at 06:21PM

7
#296 - Malek Ben Romdhane / @malekbr

05/31/2015 at 12:59AM

7
#297 - jinhwan choi / @jinhwanlazy

05/31/2015 at 08:23AM

7
#298 - Ghoot Emaho / @GhootEmaho

05/31/2015 at 03:08PM

7
#299 - Peter / @peterthegreat27

05/31/2015 at 06:34PM

7
#300 - Marijn van Vliet / @wmvanvliet

06/02/2015 at 12:53PM