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

4216 active golfers, 11500 entries

Leaderboard (lowest score wins):
14
#4141 - IHateTweeting999 / @ITweeting999

05/02/2019 at 10:49PM

14
#4142 - bakusuta / @bakusuta3

09/09/2019 at 07:28AM

14
#4143 - Gabe Pohl-Zaretsky / @Gabe_PZ

10/07/2019 at 08:04PM

14
#4144 - Teal / @Teal90237347

10/18/2019 at 03:52PM

14
#4145 - Sam / @MasKeo13

11/14/2019 at 03:09AM

14
#4146 - pacy.eth / @0xpacy

04/25/2020 at 06:17AM

14
#4147 - Maik Wöhl / @maikwoehl

05/18/2020 at 01:03AM

14
#4148 - Michael V. / @mvivirito

06/09/2020 at 11:32PM

14
#4149 - 石元@人の形した大根 / @rishimot

07/07/2020 at 12:31PM

14
#4150 - Dr. B / @DrFanB

08/04/2023 at 03:43PM

14
#4151 - Justin Fisher / @justinfisherr

11/02/2024 at 04:51PM

14
#4152 - Badita Marin-Georgian / @GeorgianBadita

11/26/2024 at 10:59PM

15
#4153 - AZ / @lazywithclass

12/09/2014 at 05:56PM

15
#4154 - Lunar Mayor / @Lunarmayor

12/17/2014 at 10:03PM

15
#4155 - jagardaniel / @jagardaniel

01/19/2015 at 01:12AM

15
#4156 - Gustavo Matias / @gu_matias

03/02/2015 at 10:41PM

15
#4157 - Magnus Stavngaard / @bus3450

06/01/2015 at 05:38PM

15
#4158 - Kostas Lekkas / @kwstasl

06/01/2015 at 10:38PM

15
#4159 - Eduardo Hashimoto / @eduhashi

12/15/2016 at 12:10PM

15
#4160 - Brandon Height / @Lask0x

08/08/2017 at 01:12AM

15
#4161 - Isaac Haller 🏴 / @isaac_haller

11/15/2017 at 04:43PM

15
#4162 - Michael Heyman / @michaelheyman

11/16/2017 at 02:26AM

15
#4163 - 신지훈 / @iwUeDn1UGj3aXZ3

06/29/2018 at 08:02AM

15
#4164 - Jake Hasler / @jakehasler

09/12/2018 at 03:17PM

15
#4165 - whiteonyx.go / @whiteonyx_go

12/27/2018 at 01:01AM

15
#4166 - Antonio Bayonas / @BayonasAntonio

06/06/2019 at 05:21PM

15
#4167 - lzh / @ly_zhng

06/14/2020 at 01:52PM

15
#4168 - dzungtran / @dzungtran89

09/19/2020 at 01:56AM

15
#4169 - Ben Wainwright / @benwainwrightuk

09/26/2020 at 02:50PM

16
#4170 - Linh Bui / @LinhPBui

12/22/2014 at 07:19AM