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

4114 active golfers, 11141 entries

Leaderboard (lowest score wins):
11
#3871 - Brent Woo / @BrentPWoo

10/01/2018 at 07:45PM

11
#3872 - Jurica / @Jurica34581259

11/14/2018 at 11:27PM

11
#3873 - david@@@@wang / @davidwa86717152

11/16/2018 at 09:32AM

11
#3874 - nykisoji / @nykisoji

01/14/2019 at 12:04PM

11
#3875 - MGJoe93 / @mgjoe93

03/02/2019 at 06:04PM

11
#3876 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:19PM

11
#3877 - Mike C / @StrixVariaXIX

04/22/2019 at 04:00PM

11
#3878 - Am Jam / @LoneJam

06/11/2019 at 08:36PM

11
#3879 - soundscope / @__soundscope__

06/25/2019 at 12:35PM

11
#3880 - Березницкий Вадим / @vad1mster

07/06/2019 at 06:02PM

11
#3881 - Vim Golfer / @VimGolfer6

07/12/2019 at 11:09AM

11
#3882 - Nurettin Abacı / @AbacNurettin

08/05/2019 at 06:09PM

11
#3883 - Iggy / @iggredible

09/05/2019 at 02:51AM

11
#3884 - 0xNinja / @0x_Ninja

10/22/2019 at 02:52PM

11
#3885 - Max Coplan / @mchcopl

11/04/2019 at 12:15AM

11
#3886 - Scott Powell / @ScottPowellM

11/07/2019 at 06:32PM

11
#3887 - Timo Böhm / @TimoBohm

11/26/2019 at 03:44PM

11
#3888 - ace_of_art_club / @aceofartclub1

12/16/2019 at 03:24PM

11
#3889 - なで。 / @nadegata217

02/05/2020 at 02:37PM

11
#3890 - ぼっすん / @kamontia

02/12/2020 at 02:50PM

11
#3891 - nosy misson / @NosyMisson

03/28/2020 at 01:56PM

11
#3892 - Jake Van Alstyne / @jake_va

05/06/2020 at 09:17PM

11
#3893 - gino / @imGinoW

05/24/2020 at 01:32PM

11
#3894 - Anil Narayan / @AnilNarayan2013

07/12/2020 at 06:40AM

11
#3895 - Nathan Hollows / @nathanhollows

08/20/2020 at 11:01PM

11
#3896 - Die_marlone / @m8rl0n

10/02/2020 at 01:06PM

11
#3897 - knoebber / @knoebber1

10/13/2020 at 04:39PM

12
#3898 - Adam / @adamCoder

12/15/2014 at 06:33PM

12
#3899 - Claus Witt / @clauswitt

12/16/2014 at 03:12PM

12
#3900 - 黄锦 / @hujin1860

12/21/2014 at 04:14PM