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

4088 active golfers, 11074 entries

Leaderboard (lowest score wins):
13
#3991 - mogitate / @mutemeat

11/04/2019 at 08:09AM

13
#3992 - Some Name / @spamintosh

11/28/2019 at 10:23PM

13
#3993 - Lidiya Ponomareva / @LidiyaPonomare3

12/05/2019 at 06:52PM

13
#3994 - Hohukel / @Hohukel

12/29/2019 at 09:09AM

13
#3995 - 梁(Liang リャン) / @starduliang

03/01/2020 at 12:48PM

13
#3996 - Jason / @roosjason

04/08/2020 at 07:39AM

13
#3997 - ウチコ / @memememomo

04/24/2020 at 12:28PM

13
#3998 - Sarayut Lawilai / @imkopkap

05/13/2020 at 08:33AM

13
#3999 - blue christ / @bluechrist3

05/27/2020 at 07:16PM

13
#4000 - Christopher Oosthuizen / @ChristopherOos8

11/04/2020 at 03:11PM

13
#4001 - vesa / @XingfDu

01/14/2021 at 07:14AM

13
#4002 - Max Wagner / @MaxWagn82999438

01/22/2021 at 11:01PM

14
#4003 - Pratik / @prathik_t

04/28/2015 at 12:50PM

14
#4004 - Elizabeth HONG / @elizabethhong11

05/08/2015 at 10:23PM

14
#4005 - SkorKNURE / @SkorKNURE

05/10/2015 at 12:23AM

14
#4006 - Bruno Gonçales Lima / @bglbruno

07/18/2015 at 03:34PM

14
#4007 - Meredith E / @funwithgrevocab

02/08/2016 at 01:14AM

14
#4008 - Steven Burnett / @sdb1228

02/22/2016 at 09:07PM

14
#4009 - Harry Zak / @brooodzak

03/09/2016 at 03:07PM

14
#4010 - alonso montero / @A10ns094

05/21/2016 at 10:18PM

14
#4011 - Samir Sadek / @netsamir

07/10/2016 at 04:52PM

14
#4012 - Mattias GABRIEL / @matou008

12/20/2016 at 04:13PM

14
#4013 - Bart Brandhoff / @bbrandhoff

06/30/2017 at 09:03PM

14
#4014 - Samidhya Sarker / @desertSniper87

08/25/2017 at 09:01AM

14
#4015 - Yann VERY / @yannvery

06/25/2018 at 11:08AM

14
#4016 - urandom / @ttyrandom

10/20/2018 at 04:26PM

14
#4017 - pin2tintin / @pin2tintin

11/08/2018 at 09:41PM

14
#4018 - Amey Patil / @Amey_Patil

12/29/2018 at 02:16PM

14
#4019 - IHateTweeting999 / @ITweeting999

05/02/2019 at 10:49PM

14
#4020 - bakusuta / @bakusuta3

09/09/2019 at 07:28AM