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

4232 active golfers, 11546 entries

Leaderboard (lowest score wins):
13
#4111 - Maciej Mionskowski / @maciekmm_

02/22/2017 at 11:30AM

13
#4112 - Anton Popov / @agraver

10/06/2017 at 08:55AM

13
#4113 - Matheus / @matheuusbs

05/11/2018 at 04:16PM

13
#4114 - Jinho / @Jinho24933478

06/29/2018 at 07:51AM

13
#4115 - Matheus Rezende / @matheusr_dev

10/24/2018 at 03:07AM

13
#4116 - Matthias Kausl / @sig_segv

04/22/2019 at 02:44PM

13
#4117 - うんちプログラマ / @UnchiProgrammer

05/07/2019 at 10:13AM

13
#4118 - Rob Stringer / @StringerWebDev

05/08/2019 at 07:35PM

13
#4119 - sed / @811272067649

05/24/2019 at 10:56PM

13
#4120 - Daisuke Ito / @itodais

08/21/2019 at 10:50AM

13
#4121 - Hung Hoang / @hoanghun5

08/26/2019 at 12:45PM

13
#4122 - Aaron / @aaronlichtman

10/01/2019 at 02:38PM

13
#4123 - かんべ / @kanbe8810

10/06/2019 at 01:46AM

13
#4124 - mogitate / @mutemeat

11/04/2019 at 08:09AM

13
#4125 - Some Name / @spamintosh

11/28/2019 at 10:23PM

13
#4126 - Lidiya Ponomareva / @LidiyaPonomare3

12/05/2019 at 06:52PM

13
#4127 - Hohukel / @Hohukel

12/29/2019 at 09:09AM

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

03/01/2020 at 12:48PM

13
#4129 - Jason / @roosjason

04/08/2020 at 07:39AM

13
#4130 - ウチコ / @memememomo

04/24/2020 at 12:28PM

13
#4131 - Sarayut Lawilai / @imkopkap

05/13/2020 at 08:33AM

13
#4132 - blue christ / @bluechrist3

05/27/2020 at 07:16PM

13
#4133 - Christopher Oosthuizen / @ChristopherOos8

11/04/2020 at 03:11PM

13
#4134 - vesa / @XingfDu

01/14/2021 at 07:14AM

13
#4135 - Max Wagner / @MaxWagn82999438

01/22/2021 at 11:01PM

13
#4136 - 지형 유 / @O_hr_good7

04/05/2022 at 07:31PM

13
#4137 - 한상우 / @rightpair24

09/11/2023 at 12:39PM

13
#4138 - Maximiliano Capodacqua / @maxicapodacqua

10/07/2025 at 02:01AM

13
#4139 - Omar D. / @omardrwch

12/04/2025 at 12:55PM

14
#4140 - Pratik / @prathik_t

04/28/2015 at 12:50PM