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 4205 remaining solutions by signing in and submitting your own entry
#4206 휘람 / @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

4206 active golfers, 11477 entries

Leaderboard (lowest score wins):
9
#3571 - Gayan Munasinghe / @gayanm

09/23/2018 at 11:12PM

9
#3572 - Brandon Hops / @BrandonHops

09/29/2018 at 05:36PM

9
#3573 - しゅう / @shu22204

10/16/2018 at 04:19PM

9
#3574 - Luis Rodriguez / @luisthecoder

11/12/2018 at 12:38AM

9
#3575 - editor3D / @editor3D

11/13/2018 at 12:08PM

9
#3576 - Andreas Nordahl / @andreasnordahl

11/14/2018 at 05:00PM

9
#3577 - Shunichi Kanade / @shunkana

11/18/2018 at 01:49AM

9
#3578 - tuyen / @tuyen66827418

11/21/2018 at 08:42AM

9
#3579 - Tom Troyer / @tom_troyer

11/29/2018 at 07:58PM

9
#3580 - みずき / @iviizukiti

12/04/2018 at 05:43AM

9
#3581 - Bao Dang / @baodang02

01/12/2019 at 06:37AM

9
#3582 - wrglprmft / @wrglprmft

01/19/2019 at 09:07PM

9
#3583 - Blah Blah / @BlahBla08410389

01/20/2019 at 07:02PM

9
#3584 - Azyl / @aa_knifejaw

01/24/2019 at 01:20PM

9
#3585 - churaki / @churaki

01/25/2019 at 10:11PM

9
#3586 - tapio / @gncnaxb

02/27/2019 at 11:08PM

9
#3587 - zenwalker / @zenwalker93

03/09/2019 at 01:17PM

9
#3588 - Amado Antonini / @AmadoAntonini

03/14/2019 at 07:32AM

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

04/16/2019 at 03:18AM

9
#3590 - ミルコ / @shin1g

06/06/2019 at 09:27PM

9
#3591 - Prashanth / @Prashanth157T

06/12/2019 at 04:43PM

9
#3592 - MartinRAndersen / @MyrionSC2

06/27/2019 at 08:32AM

9
#3593 - mirsemen / @mirsemen1

07/15/2019 at 09:23AM

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

07/23/2019 at 12:16AM

9
#3595 - Patrick S. / @Patst1005

08/08/2019 at 07:54PM

9
#3596 - André Reigoto / @AndreReigoto

08/10/2019 at 04:52AM

9
#3597 - Tom 📡 / @thomaspsteven

08/24/2019 at 12:43AM

9
#3598 - spock900 / @spock9002

08/24/2019 at 07:04AM

9
#3599 - excalipoor / @pawlrus

09/03/2019 at 07:02PM

9
#3600 - Phuc Ngo Hoang Anh / @nhap96

09/12/2019 at 07:49PM