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

3562 active golfers, 9544 entries

Leaderboard (lowest score wins):
7
#721 - Sahar Rachamim (Kishu) / @SRachamim

09/19/2016 at 09:14PM

7
#722 - Christian Albertsen / @mannahusum

09/20/2016 at 11:52AM

7
#723 - Patrick Davey / @psdavey

09/21/2016 at 06:59AM

7
#724 - Nico / @_Nico_Caro

09/23/2016 at 07:00PM

7
#725 - Anthony Ardito / @aardito21

09/25/2016 at 11:27PM

7
#726 - Mikkel Knudsen / @mikk2168

09/27/2016 at 08:00AM

7
#727 - Jeremiah Gibson / @jeremiah4691

09/28/2016 at 10:22PM

7
#728 - Beda Atikon / @pk_atwork

09/30/2016 at 08:24AM

7
#729 - René De Alvarado / @renedealvarado

09/30/2016 at 08:24AM

7
#730 - poke / @useraaaaaaaaaaf

10/04/2016 at 02:23PM

7
#731 - @ / @kangur85

10/05/2016 at 11:46PM

7
#732 - david quarles / @davidequarles

10/06/2016 at 06:20AM

7
#733 - Lukas Kruemel / @KruemelKobold

10/06/2016 at 08:28AM

7
#734 - Whossname / @BuzzaTyson

10/08/2016 at 07:04AM

7
#735 - 류장근 / @hero77geni

10/08/2016 at 12:06PM

7
#736 - trx / @trxdbg

10/09/2016 at 05:50AM

7
#737 - A Random Cider / @jtxyz_

10/09/2016 at 01:01PM

7
#738 - Chris Hampson / @ChrisHampsonGTD

10/10/2016 at 08:03AM

7
#739 - Kyouma / @kyoumaJohn

10/12/2016 at 10:02PM

7
#740 - Christian Rondeau / @c_rondeau

10/14/2016 at 12:08PM

7
#741 - Brian Mego / @Major251

10/17/2016 at 03:02AM

7
#742 - Shashwat Raghuvanshi / @Shashwat_sr123

10/17/2016 at 03:28PM

7
#743 - JustGage / @JustGage

10/17/2016 at 06:54PM

7
#744 - João Sousa Andrade / @thejoaosa

10/17/2016 at 09:03PM

7
#745 - Karl Lundquist / @karllundquist

10/18/2016 at 09:55PM

7
#746 - KangHun Seo / @shirano80

10/24/2016 at 05:07AM

7
#747 - Alpa_akm / @Alpa_akm

10/24/2016 at 02:27PM

7
#748 - 子皓翁 / @geniusgordon

10/25/2016 at 07:51AM

7
#749 - Phoenix / @betentacled

10/25/2016 at 11:34PM

7
#750 - Christoph F. Seelus / @cseelus

10/26/2016 at 03:38AM