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):
11
#3961 - Brent Woo / @BrentPWoo

10/01/2018 at 07:45PM

11
#3962 - Jurica / @Jurica34581259

11/14/2018 at 11:27PM

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

11/16/2018 at 09:32AM

11
#3964 - nykisoji / @nykisoji

01/14/2019 at 12:04PM

11
#3965 - MGJoe93 / @mgjoe93

03/02/2019 at 06:04PM

11
#3966 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:19PM

11
#3967 - Mike C / @StrixVariaXIX

04/22/2019 at 04:00PM

11
#3968 - Am Jam / @LoneJam

06/11/2019 at 08:36PM

11
#3969 - soundscope / @__soundscope__

06/25/2019 at 12:35PM

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

07/06/2019 at 06:02PM

11
#3971 - Vim Golfer / @VimGolfer6

07/12/2019 at 11:09AM

11
#3972 - Nurettin Abacı / @NurettinAbaci

08/05/2019 at 06:09PM

11
#3973 - Iggy / @iggredible

09/05/2019 at 02:51AM

11
#3974 - 0xNinja / @0x_Ninja

10/22/2019 at 02:52PM

11
#3975 - Max Coplan / @mchcopl

11/04/2019 at 12:15AM

11
#3976 - Scott Powell / @ScottPowellM

11/07/2019 at 06:32PM

11
#3977 - Timo Böhm / @TimoBohm

11/26/2019 at 03:44PM

11
#3978 - ace_of_art_club / @aceofartclub1

12/16/2019 at 03:24PM

11
#3979 - なで。 / @nadegata217

02/05/2020 at 02:37PM

11
#3980 - ぼっすん / @kamontia

02/12/2020 at 02:50PM

11
#3981 - nosy misson / @NosyMisson

03/28/2020 at 01:56PM

11
#3982 - Jake Van Alstyne / @jake_va

05/06/2020 at 09:17PM

11
#3983 - gino / @imGinoW

05/24/2020 at 01:32PM

11
#3984 - Anil Narayan / @AnilNarayan2013

07/12/2020 at 06:40AM

11
#3985 - Nathan Hollows / @nathanhollows

08/20/2020 at 11:01PM

11
#3986 - Die_marlone / @m8rl0n

10/02/2020 at 01:06PM

11
#3987 - knoebber / @knoebber1

10/13/2020 at 04:39PM

11
#3988 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

03/08/2024 at 04:02PM

11
#3989 - Alexander Groth / @alexander-walkingtreegames

05/23/2024 at 09:37AM

12
#3990 - Adam / @adamCoder

12/15/2014 at 06:33PM