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 4208 remaining solutions by signing in and submitting your own entry
#4209 휘람 / @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

4209 active golfers, 11484 entries

Leaderboard (lowest score wins):
7
#451 - Jacob Beal / @_caliburnus

10/10/2015 at 09:50PM

7
#452 - Brian John Farrar / @Apotropaix

10/11/2015 at 07:18AM

7
#453 - 朱国栋 / @GuodongZhu

10/13/2015 at 04:40AM

7
#454 - Stani Banani / @Stani_Banani

10/13/2015 at 05:12PM

7
#455 - Mina Naguib / @minaguib

10/14/2015 at 02:15AM

7
#456 - Marcus Peacock / @MarcusDPeacock

10/14/2015 at 02:31PM

7
#457 - Grégoire Delattre / @gregdel

10/14/2015 at 07:33PM

7
#458 - Anno / @AnnoVinyl

10/15/2015 at 04:05PM

7
#459 - [object Object] / @marinintim

10/16/2015 at 09:31AM

7
#460 - Alexandre Bury / @gyscos

10/17/2015 at 08:15PM

7
#461 - Huan Zhang / @Zhhuan

10/18/2015 at 08:07AM

7
#462 - Mikko Pitkänen / @pitkane

10/21/2015 at 11:57AM

7
#463 - Simon Dudley / @psy__phi

10/21/2015 at 07:55PM

7
#464 - Andrew Maiden / @andrew__maiden

10/22/2015 at 01:35PM

7
#465 - Alex J. Ahraus / @fanaugen

10/23/2015 at 03:17PM

7
#466 - Gleb Kh / @GlebKh

10/24/2015 at 05:11AM

7
#467 - Shobhit Gupta / @shobhitg

10/24/2015 at 07:57PM

7
#468 - Matthew Desjardins / @Desjardins_M

10/25/2015 at 03:28AM

7
#469 - Jacob Steffler / @jacobsteffler

10/25/2015 at 07:17PM

7
#470 - Maple / @MapleStage

10/26/2015 at 11:03AM

7
#471 - Joe Ruder / @joeruder42

10/28/2015 at 09:03PM

7
#472 - Justin Sermeno / @justinsermeno

10/29/2015 at 03:56AM

7
#473 - Árpád Krejczinger / @krarpi

10/30/2015 at 03:21PM

7
#474 - lyubarskiy / @lyubarskiy

11/01/2015 at 03:12PM

7
#475 - Julien Grenier / @juliengrenier

11/02/2015 at 01:59PM

7
#476 - Faat / @i_faat

11/03/2015 at 06:00PM

7
#477 - Arkady Arkhangorodsk / @arkadyark

11/04/2015 at 02:02PM

7
#478 - dan riti / @danriti

11/04/2015 at 09:41PM

7
#479 - John Phelan / @jackphel

11/06/2015 at 05:09AM

7
#480 - Andres Hazard / @andreshazard

11/07/2015 at 03:52AM