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

4090 active golfers, 11079 entries

Leaderboard (lowest score wins):
8
#1561 - David Rainsford / @davidrainsford

01/09/2015 at 12:44AM

8
#1562 - blamitter ✏️ / @blamitter

01/09/2015 at 07:31PM

8
#1563 - Hiroshi Kato / @kato1628

01/10/2015 at 11:12AM

8
#1564 - Bruno Arueira / @bruno_arueira

01/10/2015 at 01:51PM

8
#1565 - n/a / @tclamb

01/11/2015 at 08:28PM

8
#1566 - Robbie Clarken / @robbieclarken

01/12/2015 at 12:28AM

8
#1567 - Orpine / @OrpineX

01/12/2015 at 11:38AM

8
#1568 - Andrea Mazzini / @theandreamazz

01/12/2015 at 04:13PM

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

01/13/2015 at 05:25AM

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

01/13/2015 at 07:24AM

8
#1571 - Scotland Stephenson / @alsoscotland

01/13/2015 at 07:08PM

8
#1572 - Keith Mascarenhas / @keithxm23

01/14/2015 at 01:07PM

8
#1573 - Christian Mönnig / @ch_moennig

01/14/2015 at 01:15PM

8
#1574 - Steve Perkson / @stevePerkson

01/14/2015 at 07:04PM

8
#1575 - GrupoCITEC / @GrupoCITEC

01/15/2015 at 02:53AM

8
#1576 - Simon Mölzer / @h0wser

01/15/2015 at 02:28PM

8
#1577 - Andreas Møller / @cullophid

01/15/2015 at 05:03PM

8
#1578 - Aaron Whittington / @whittaaron

01/16/2015 at 12:42AM

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

01/16/2015 at 11:07AM

8
#1580 - papitoniño / @Anthony47470507

01/16/2015 at 03:08PM

8
#1581 - Matt Walsh / @mattwalsh

01/16/2015 at 10:49PM

8
#1582 - Christopher MCA / @christopherMCA

01/17/2015 at 06:49AM

8
#1583 - Dmitry V. Alexeev / @alexeevdv

01/17/2015 at 02:31PM

8
#1584 - Christian Leskowsky / @CLeskowsky

01/17/2015 at 05:53PM

8
#1585 - Xeno Daphron / @daphron

01/18/2015 at 02:24AM

8
#1586 - Jakub Troszok / @zosoooo

01/19/2015 at 08:01AM

8
#1587 - Daniel Lundin / @danielundin

01/19/2015 at 08:07AM

8
#1588 - Rathrio / @Rathrio

01/19/2015 at 08:52AM

8
#1589 - Orlov Sergey / @OrlovSA

01/19/2015 at 09:17AM

8
#1590 - Christian Prehl / @prehlDE

01/19/2015 at 10:15AM