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):
9
#3541 - hokonch / @hokonch

12/22/2019 at 03:46PM

9
#3542 - Hector Davensburg / @hdavensburg

12/27/2019 at 10:03PM

9
#3543 - 井上しょー(Sho) / @SSRInoue

01/04/2020 at 07:27AM

9
#3544 - Moye_ / @moye_

01/08/2020 at 02:56AM

9
#3545 - Halfdan S. Bechmann / @HalfdanIsLame

01/14/2020 at 09:38PM

9
#3546 - みら / @Oya_M1

01/22/2020 at 02:14PM

9
#3547 - じんぺー / @jinpei0908

02/15/2020 at 09:04AM

9
#3548 - Alvaro Melendez / @alvaromelendezh

02/21/2020 at 05:58PM

9
#3549 - ser / @ser_robo

02/28/2020 at 01:56PM

9
#3550 - Ishi / @HalloWard1

03/08/2020 at 10:04AM

9
#3551 - Saransh Barua / @_saranshbarua

03/28/2020 at 07:30PM

9
#3552 - Austin Letson / @austin_letson

04/25/2020 at 04:59PM

9
#3553 - 超絶電源 / @boboboxman90

05/01/2020 at 02:12PM

9
#3554 - James Dermelj / @JamesDermelj

05/04/2020 at 07:10AM

9
#3555 - Fukunishi Hashitoku / @FHashitoku

05/08/2020 at 02:45PM

9
#3556 - Pawel Wenda / @pwlwnd

05/13/2020 at 08:47PM

9
#3557 - Manish Baghel / @ManishBaghelz

05/15/2020 at 02:36AM

9
#3558 - たぬぽん / @wiz_pon

05/16/2020 at 07:38PM

9
#3559 - Mack Hutsell / @sellshuts

05/24/2020 at 06:43PM

9
#3560 - Robin Abrahamsson / @rqAbrahamsson

05/31/2020 at 07:52AM

9
#3561 - Martin Landsem / @landsematwork

06/17/2020 at 08:34AM

9
#3562 - Di Liu / @Skyerliu

06/20/2020 at 06:26PM

9
#3563 - JLObject / @powful_panda

07/01/2020 at 07:53PM

9
#3564 - ぼとぼと / @boto_voto

07/31/2020 at 05:42PM

9
#3565 - 最近太り気味で。 / @doka2000gt

08/23/2020 at 11:06PM

9
#3566 - lz2ggf / @lz2ggf

08/26/2020 at 07:41PM

9
#3567 - Camilo A. Matajira / @CamiloMatajira

09/06/2020 at 11:21AM

9
#3568 - Ryan / @ryan_lardinois

09/07/2020 at 12:18AM

9
#3569 - Pepe / @PedroVassena

09/08/2020 at 09:48PM

9
#3570 - alrito / @alrito6

09/12/2020 at 10:45PM