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

3423 active golfers, 9164 entries

Leaderboard (lowest score wins):
12
#3301 - Joshua Tonga / @imjoshuatonga

09/18/2016 at 06:35PM

12
#3302 - Wolf / @YesJustWolf

09/25/2016 at 08:00PM

12
#3303 - Ninja Gun / @ninjagun

10/06/2016 at 10:21PM

12
#3304 - Kyoungchin Seo(서경진) / @jiniseo

10/19/2016 at 02:43AM

12
#3305 - Amadou CISSE / @amsayk

11/02/2016 at 06:51PM

12
#3306 - kayamak / @k_kayama

02/24/2017 at 04:34PM

12
#3307 - Dreach Achat Revente / @TheDreach_AR

03/25/2017 at 12:18PM

12
#3308 - James Sral / @bcwarlock18

09/05/2017 at 07:52PM

12
#3309 - z0c / @zerocabal

06/02/2018 at 10:24AM

12
#3310 - David Butler / @dbuts11

06/08/2018 at 02:37AM

12
#3311 - あああ / @fox22c

06/11/2018 at 05:24AM

12
#3312 - touilleMan / @touilleMan

07/29/2018 at 11:26PM

12
#3313 - Jonny Wilson / @thejondom

12/21/2018 at 09:40PM

12
#3314 - Sean Connor / @seaconr

03/06/2019 at 08:19AM

12
#3315 - cyrt / @cyrt4

03/12/2019 at 11:01AM

12
#3316 - linus heinz / @heinz_linus

04/19/2019 at 09:08PM

13
#3317 - Dick Wiggers / @dickwiggers

01/06/2015 at 01:21PM

13
#3318 - Lindsay Verola / @lindsayv34

01/14/2015 at 11:40PM

13
#3319 - majie1993 / @1092121595

01/20/2015 at 05:02AM

13
#3320 - Zeeshan Jan / @zeeshanjan82

01/24/2015 at 06:23AM

13
#3321 - krispouille / @krispouille

01/26/2015 at 09:35PM

13
#3322 - The Kiba / @thekiba88

02/22/2015 at 02:10PM

13
#3323 - someoddpilot.dev / @someoddpilotdev

02/24/2015 at 06:33PM

13
#3324 - Yuan Guan / @yuanguan89

02/27/2015 at 02:51AM

13
#3325 - Sherin Kurian / @sherinkurian

03/03/2015 at 05:17AM

13
#3326 - Bastian Widmer / @dasrecht

03/03/2015 at 01:56PM

13
#3327 - Tabby / @Tabbie__

05/02/2015 at 07:06AM

13
#3328 - Vivek Sunder / @sviveksunder

05/13/2015 at 03:59AM

13
#3329 - Jason Spafford / @JasonSpafford

05/21/2015 at 10:39PM

13
#3330 - asdasd / @TheHeyHey123

05/31/2015 at 05:27AM