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
#1561 - James Pringle / @mathbyjames

02/13/2015 at 03:27PM

8
#1562 - Jesse Hazen / @jhazen532

02/13/2015 at 07:27PM

8
#1563 - Kareeeeem / @VegetableBlanka

02/14/2015 at 12:52PM

8
#1564 - Pierre Langlois / @_pierrelanglois

02/14/2015 at 01:55PM

8
#1565 - Georgi Dimitrov / @gjdimitrov

02/14/2015 at 06:21PM

8
#1566 - Jae Won Kim / @jaewone

02/16/2015 at 07:32AM

8
#1567 - Vu Minh Tan / @vuminhtan

02/16/2015 at 08:12AM

8
#1568 - brobostigon / @colonel_korn

02/17/2015 at 04:41PM

8
#1569 - Michael Giuffrida / @mgiuffrida

02/20/2015 at 04:06AM

8
#1570 - Thiago Prado / @5k1pp3r

02/20/2015 at 03:42PM

8
#1571 - Jérôme Salignon / @JeromeSalignon

02/21/2015 at 03:38PM

8
#1572 - Alan Shen / @sunzenshen

02/22/2015 at 06:23AM

8
#1573 - Arturo Volpe / @CochoVolpe

02/23/2015 at 11:47AM

8
#1574 - Asenar / @asenar

02/23/2015 at 03:46PM

8
#1575 - An / @holidayrocket

02/24/2015 at 04:49PM

8
#1576 - nei nei / @fuglekvitraren

02/24/2015 at 05:04PM

8
#1577 - Công Nguyễn / @ntcong

02/25/2015 at 04:12AM

8
#1578 - Javier Carpio / @SaxKazein

02/25/2015 at 10:37AM

8
#1579 - Bilal Quadri / @BilalQuadri

02/25/2015 at 06:29PM

8
#1580 - dtennant / @dtennant

02/25/2015 at 06:45PM

8
#1581 - Mike McGowan / @mikemcgowan75

02/26/2015 at 07:36PM

8
#1582 - Jake Eaton / @Jake__Eaton

02/28/2015 at 07:02AM

8
#1583 - Nathan Bullock / @c1410a

02/28/2015 at 08:25AM

8
#1584 - Scott Hillman / @scott_hillman

02/28/2015 at 12:21PM

8
#1585 - Кисы / @ubermuschi

03/01/2015 at 01:09PM

8
#1586 - Qhuatre / @Qhuatre

03/01/2015 at 05:20PM

8
#1587 - nope / @nope_gknobup

03/01/2015 at 08:40PM

8
#1588 - Ben Plantinga / @benplantinga

03/02/2015 at 02:14AM

8
#1589 - muulwurf / @muulwurf

03/02/2015 at 07:48PM

8
#1590 - Matthew Bender / @iobender

03/02/2015 at 07:57PM