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):
11
#3991 - Timo Böhm / @TimoBohm

11/26/2019 at 03:44PM

11
#3992 - ace_of_art_club / @aceofartclub1

12/16/2019 at 03:24PM

11
#3993 - なで。 / @nadegata217

02/05/2020 at 02:37PM

11
#3994 - ぼっすん / @kamontia

02/12/2020 at 02:50PM

11
#3995 - nosy misson / @NosyMisson

03/28/2020 at 01:56PM

11
#3996 - Jake Van Alstyne / @jake_va

05/06/2020 at 09:17PM

11
#3997 - gino / @imGinoW

05/24/2020 at 01:32PM

11
#3998 - Anil Narayan / @AnilNarayan2013

07/12/2020 at 06:40AM

11
#3999 - Nathan Hollows / @nathanhollows

08/20/2020 at 11:01PM

11
#4000 - Die_marlone / @m8rl0n

10/02/2020 at 01:06PM

11
#4001 - knoebber / @knoebber1

10/13/2020 at 04:39PM

11
#4002 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

03/08/2024 at 04:02PM

11
#4003 - Alexander Groth / @alexander-walkingtreegames

05/23/2024 at 09:37AM

11
#4004 - pratik Sharma / @pratikshrma

10/31/2025 at 08:27PM

11
#4005 - never-giveupgit / @never-giveupgit

11/28/2025 at 07:01PM

12
#4006 - Adam / @adamCoder

12/15/2014 at 06:33PM

12
#4007 - Claus Witt / @clauswitt

12/16/2014 at 03:12PM

12
#4008 - 黄锦 / @hujin1860

12/21/2014 at 04:14PM

12
#4009 - Ivan Neto / @ivancrneto

01/18/2015 at 10:36PM

12
#4010 - a b / @c00_a

01/19/2015 at 12:38PM

12
#4011 - Terra Incognita / @mksoge

01/20/2015 at 08:50AM

12
#4012 - Marco Kotz / @mrcktz

01/23/2015 at 02:41PM

12
#4013 - しょーへー / @pasopeko

01/24/2015 at 02:20PM

12
#4014 - Ivan Thai / @thaivanovich

02/24/2015 at 09:49AM

12
#4015 - Ruslan Ismagilov / @is_ruslan

02/26/2015 at 10:20AM

12
#4016 - Elijah Love / @elijahdl

03/02/2015 at 03:35AM

12
#4017 - markos rendell / @markosrendell

03/03/2015 at 03:39PM

12
#4018 - shugen / @shugeno

03/03/2015 at 08:16PM

12
#4019 - Niza / @GangatN

03/17/2015 at 07:30PM

12
#4020 - Orion Osborn / @oorion_

03/17/2015 at 09:39PM