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

4216 active golfers, 11500 entries

Leaderboard (lowest score wins):
8
#1591 - Cnetwork / @WShuguang

01/02/2015 at 02:05PM

8
#1592 - Akshay Hegde / @ajh_17

01/03/2015 at 08:53AM

8
#1593 - Salleyron Julien / @juguul

01/04/2015 at 02:14PM

8
#1594 - Carlos López / @morrizon

01/04/2015 at 05:04PM

8
#1595 - @hauleth@hauleth.dev / @hauleth

01/04/2015 at 07:32PM

8
#1596 - Michael Aston / @pennyOsl

01/07/2015 at 08:53PM

8
#1597 - David Tenreiro / @AxDATF

01/08/2015 at 01:39AM

8
#1598 - Chris Fleming / @chrisfl

01/08/2015 at 11:00AM

8
#1599 - Tadeu Zagallo / @tadeuzagallo

01/08/2015 at 11:52AM

8
#1600 - David Wright / @David27Wright

01/08/2015 at 05:00PM

8
#1601 - David Rainsford / @davidrainsford

01/09/2015 at 12:44AM

8
#1602 - blamitter ✏️ / @blamitter

01/09/2015 at 07:31PM

8
#1603 - Hiroshi Kato / @kato1628

01/10/2015 at 11:12AM

8
#1604 - Bruno Arueira / @bruno_arueira

01/10/2015 at 01:51PM

8
#1605 - n/a / @tclamb

01/11/2015 at 08:28PM

8
#1606 - Robbie Clarken / @robbieclarken

01/12/2015 at 12:28AM

8
#1607 - Orpine / @OrpineX

01/12/2015 at 11:38AM

8
#1608 - Andrea Mazzini / @theandreamazz

01/12/2015 at 04:13PM

8
#1609 - Dr Rev J. “I am not a bot!” Kirchartz, KSC, KHS / @JKirchartz

01/13/2015 at 05:25AM

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

01/13/2015 at 07:24AM

8
#1611 - Scotland Stephenson / @alsoscotland

01/13/2015 at 07:08PM

8
#1612 - Keith Mascarenhas / @keithxm23

01/14/2015 at 01:07PM

8
#1613 - Christian Mönnig / @ch_moennig

01/14/2015 at 01:15PM

8
#1614 - Steve Perkson / @stevePerkson

01/14/2015 at 07:04PM

8
#1615 - GrupoCITEC / @GrupoCITEC

01/15/2015 at 02:53AM

8
#1616 - Simon Mölzer / @h0wser

01/15/2015 at 02:28PM

8
#1617 - Andreas Møller / @cullophid

01/15/2015 at 05:03PM

8
#1618 - Aaron Whittington / @whittaaron

01/16/2015 at 12:42AM

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

01/16/2015 at 11:07AM

8
#1620 - papitoniño / @Anthony47470507

01/16/2015 at 03:08PM