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
#3511 - Azyl / @aa_knifejaw

01/24/2019 at 01:20PM

9
#3512 - churaki / @churaki

01/25/2019 at 10:11PM

9
#3513 - tapio / @gncnaxb

02/27/2019 at 11:08PM

9
#3514 - zenwalker / @zenwalker93

03/09/2019 at 01:17PM

9
#3515 - Amado Antonini / @AmadoAntonini

03/14/2019 at 07:32AM

9
#3516 - しゃちょう◢⁴⁶ / @ariasyatyo

04/16/2019 at 03:18AM

9
#3517 - ミルコ / @shin1g

06/06/2019 at 09:27PM

9
#3518 - Prashanth / @Prashanth157T

06/12/2019 at 04:43PM

9
#3519 - MartinRAndersen / @MyrionSC2

06/27/2019 at 08:32AM

9
#3520 - mirsemen / @mirsemen1

07/15/2019 at 09:23AM

9
#3521 - とうがらし / @XgaraI7

07/23/2019 at 12:16AM

9
#3522 - Patrick S. / @Patst1005

08/08/2019 at 07:54PM

9
#3523 - André Reigoto / @AndreReigoto

08/10/2019 at 04:52AM

9
#3524 - Tom 📡 / @thomaspsteven

08/24/2019 at 12:43AM

9
#3525 - spock900 / @spock9002

08/24/2019 at 07:04AM

9
#3526 - pommevilla / @pawlrus

09/03/2019 at 07:02PM

9
#3527 - Phuc Ngo Hoang Anh / @nhap96

09/12/2019 at 07:49PM

9
#3528 - Yannick Gladow / @y_gldw

09/17/2019 at 07:34AM

9
#3529 - Ariel Miculas / @ArielMiculas

09/18/2019 at 11:14PM

9
#3530 - Juan Francisco Bertona / @Weed1an

10/11/2019 at 11:44AM

9
#3531 - Max Williams / @notmaxbutmax

10/15/2019 at 11:35PM

9
#3532 - two failing clusters in a trench coat / @0x12b

10/19/2019 at 10:05AM

9
#3533 - Cardboard Cat / @CardboardCatMTG

10/24/2019 at 02:56AM

9
#3534 - __kiyo / @__kiyo_n

11/04/2019 at 03:32AM

9
#3535 - Chris Covert / @covertcj

11/07/2019 at 08:11PM

9
#3536 - Minyi Zhong / @minyi_zhong

11/23/2019 at 04:11AM

9
#3537 - tomo@D2S / @e_2_718281828

12/04/2019 at 11:19PM

9
#3538 - 990 / @nisibasi990

12/05/2019 at 04:11PM

9
#3539 - King Kang / @nobagtravel

12/11/2019 at 10:28AM

9
#3540 - Dan Kilman / @dan_kilman

12/18/2019 at 08:13PM