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

4213 active golfers, 11494 entries

Leaderboard (lowest score wins):
13
#4111 - Hohukel / @Hohukel

12/29/2019 at 09:09AM

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

03/01/2020 at 12:48PM

13
#4113 - Jason / @roosjason

04/08/2020 at 07:39AM

13
#4114 - ウチコ / @memememomo

04/24/2020 at 12:28PM

13
#4115 - Sarayut Lawilai / @imkopkap

05/13/2020 at 08:33AM

13
#4116 - blue christ / @bluechrist3

05/27/2020 at 07:16PM

13
#4117 - Christopher Oosthuizen / @ChristopherOos8

11/04/2020 at 03:11PM

13
#4118 - vesa / @XingfDu

01/14/2021 at 07:14AM

13
#4119 - Max Wagner / @MaxWagn82999438

01/22/2021 at 11:01PM

13
#4120 - 지형 유 / @O_hr_good7

04/05/2022 at 07:31PM

13
#4121 - 한상우 / @rightpair24

09/11/2023 at 12:39PM

14
#4122 - Pratik / @prathik_t

04/28/2015 at 12:50PM

14
#4123 - Elizabeth HONG / @elizabethhong11

05/08/2015 at 10:23PM

14
#4124 - SkorKNURE / @SkorKNURE

05/10/2015 at 12:23AM

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

07/18/2015 at 03:34PM

14
#4126 - Meredith E / @funwithgrevocab

02/08/2016 at 01:14AM

14
#4127 - Steven Burnett / @sdb1228

02/22/2016 at 09:07PM

14
#4128 - Harry Zak / @brooodzak

03/09/2016 at 03:07PM

14
#4129 - alonso montero / @A10ns094

05/21/2016 at 10:18PM

14
#4130 - Samir Sadek / @netsamir

07/10/2016 at 04:52PM

14
#4131 - Mattias GABRIEL / @matou008

12/20/2016 at 04:13PM

14
#4132 - Bart Brandhoff / @bbrandhoff

06/30/2017 at 09:03PM

14
#4133 - Samidhya Sarker / @desertSniper87

08/25/2017 at 09:01AM

14
#4134 - Yann VERY / @yannvery

06/25/2018 at 11:08AM

14
#4135 - urandom / @ttyrandom

10/20/2018 at 04:26PM

14
#4136 - pin2tintin / @pin2tintin

11/08/2018 at 09:41PM

14
#4137 - Amey Patil / @Amey_Patil

12/29/2018 at 02:16PM

14
#4138 - IHateTweeting999 / @ITweeting999

05/02/2019 at 10:49PM

14
#4139 - bakusuta / @bakusuta3

09/09/2019 at 07:28AM

14
#4140 - Gabe Pohl-Zaretsky / @Gabe_PZ

10/07/2019 at 08:04PM