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):
9
#3511 - Henns Woerst / @HennsW

04/13/2017 at 05:34PM

9
#3512 - Aurélien Hervé / @aurel_herve

04/19/2017 at 03:33PM

9
#3513 - raffitz / @raffitz

04/19/2017 at 05:32PM

9
#3514 - Bruce Horner / @HerbConjurer

04/20/2017 at 01:03AM

9
#3515 - Elliot Brock / @mr_minmax

04/24/2017 at 03:36PM

9
#3516 - brucesnyder / @brucesnyder

05/03/2017 at 08:53PM

9
#3517 - Way Yan / @WayYan35002527

05/07/2017 at 02:35AM

9
#3518 - Brad Brown / @zoocat

05/07/2017 at 03:50AM

9
#3519 - Grégoire Willmann / @GWllmnn

05/09/2017 at 12:14PM

9
#3520 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 10:12PM

9
#3521 - Nathan Slaughter / @NjSlaughter

05/23/2017 at 11:58PM

9
#3522 - Lukas Galke / @_lpag

05/31/2017 at 09:02PM

9
#3523 - gsaga / @gsaga7

06/02/2017 at 04:42PM

9
#3524 - Adam Bozanich / @abozanich

06/08/2017 at 02:21AM

9
#3525 - drumm.in / @drumminapp

06/29/2017 at 10:21PM

9
#3526 - Adrian Staniec / @adrianstaniec

08/05/2017 at 09:34AM

9
#3527 - m00t-lab / @M00tL

08/05/2017 at 06:04PM

9
#3528 - ふぁぼ☆りょっぴ / @tak_jmo6928

08/14/2017 at 03:19AM

9
#3529 - Method Zero / @Mordini

08/20/2017 at 10:54PM

9
#3530 - irene / @IreneReps

08/23/2017 at 01:51AM

9
#3531 - Octave Crespel / @OCrespel

08/27/2017 at 04:43PM

9
#3532 - Steven Carr / @StevenC88925660

09/14/2017 at 06:39PM

9
#3533 - Graham Bates / @gigabates

09/16/2017 at 09:07PM

9
#3534 - Daniel / @djacobs7

09/28/2017 at 04:50PM

9
#3535 - Ty Wince / @tylerwince

09/28/2017 at 09:37PM

9
#3536 - Asheq / @TwoMegaOhms

09/28/2017 at 10:44PM

9
#3537 - Joachim Nielandt / @joachimnielandt

09/30/2017 at 04:17PM

9
#3538 - ؜ / @h43z

09/30/2017 at 08:11PM

9
#3539 - Romeo Valentin / @Seecez

10/10/2017 at 04:02PM

9
#3540 - Andrew Whitaker / @andrewwhitaker

10/13/2017 at 02:58PM