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

3871 active golfers, 10444 entries

Leaderboard (lowest score wins):
8
#1471 - Akshay Hegde / @ajh_17

01/03/2015 at 08:53AM

8
#1472 - Salleyron Julien / @juguul

01/04/2015 at 02:14PM

8
#1473 - Carlos López / @morrizon

01/04/2015 at 05:04PM

8
#1474 - See BEAMs through walls / @hauleth

01/04/2015 at 07:32PM

8
#1475 - Michael Aston / @pennyOsl

01/07/2015 at 08:53PM

8
#1476 - David Tenreiro / @AxDATF

01/08/2015 at 01:39AM

8
#1477 - Chris Fleming / @chrisfl

01/08/2015 at 11:00AM

8
#1478 - Tadeu Zagallo / @tadeuzagallo

01/08/2015 at 11:52AM

8
#1479 - David Wright / @David27Wright

01/08/2015 at 05:00PM

8
#1480 - David Rainsford / @davidrainsford

01/09/2015 at 12:44AM

8
#1481 - blamitter ✏️ / @blamitter

01/09/2015 at 07:31PM

8
#1482 - Hiroshi Kato / @kato1628

01/10/2015 at 11:12AM

8
#1483 - Bruno Arueira / @bruno_arueira

01/10/2015 at 01:51PM

8
#1484 - n/a / @tclamb

01/11/2015 at 08:28PM

8
#1485 - Robbie Clarken / @robbieclarken

01/12/2015 at 12:28AM

8
#1486 - Orpine / @OrpineX

01/12/2015 at 11:38AM

8
#1487 - Andrea Mazzini / @theandreamazz

01/12/2015 at 04:13PM

8
#1488 - Dr. Rev. J. "Paranoid Android" Kirchartz / @JKirchartz

01/13/2015 at 05:25AM

8
#1489 - Eric Söderström / @eksoderstrom

01/13/2015 at 07:24AM

8
#1490 - Scotland Stephenson / @alsoscotland

01/13/2015 at 07:08PM

8
#1491 - Keith Mascarenhas / @keithxm23

01/14/2015 at 01:07PM

8
#1492 - Christian Mönnig / @ch_moennig

01/14/2015 at 01:15PM

8
#1493 - Steve Perkson / @stevePerkson

01/14/2015 at 07:04PM

8
#1494 - GrupoCITEC / @GrupoCITEC

01/15/2015 at 02:53AM

8
#1495 - Simon Mölzer / @h0wser

01/15/2015 at 02:28PM

8
#1496 - Andreas Møller / @cullophid

01/15/2015 at 05:03PM

8
#1497 - Aaron Whittington / @whittaaron

01/16/2015 at 12:42AM

8
#1498 - Carlos A Henríquez Q / @lagunex

01/16/2015 at 11:07AM

8
#1499 - papitoniño / @Anthony47470507

01/16/2015 at 03:08PM

8
#1500 - Matt Walsh / @mattwalsh

01/16/2015 at 10:49PM