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

3834 active golfers, 10334 entries

Leaderboard (lowest score wins):
9
#3301 - MartinRAndersen / @MyrionSC2

06/27/2019 at 08:32AM

9
#3302 - mirsemen / @mirsemen1

07/15/2019 at 09:23AM

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

07/23/2019 at 12:16AM

9
#3304 - Patrick S. / @Patst1005

08/08/2019 at 07:54PM

9
#3305 - André Reigoto / @AndreReigoto

08/10/2019 at 04:52AM

9
#3306 - Tom 📡 / @thomaspsteven

08/24/2019 at 12:43AM

9
#3307 - spock900 / @spock9002

08/24/2019 at 07:04AM

9
#3308 - pommevilla / @pawlrus

09/03/2019 at 07:02PM

9
#3309 - Phuc Ngo Hoang Anh / @nhap96

09/12/2019 at 07:49PM

9
#3310 - Yannick Gladow / @y_gldw

09/17/2019 at 07:34AM

9
#3311 - Ariel Miculas / @ArielMiculas

09/18/2019 at 11:14PM

9
#3312 - Juan Francisco Bertona / @Weed1an

10/11/2019 at 11:44AM

9
#3313 - Max Williams / @notmaxbutmax

10/15/2019 at 11:35PM

9
#3314 - s3n a6n / @0x12b

10/19/2019 at 10:05AM

9
#3315 - Cardboard Cat / @CardboardCatMTG

10/24/2019 at 02:56AM

9
#3316 - __kiyo / @__kiyo_n

11/04/2019 at 03:32AM

9
#3317 - Chris Covert / @covertcj

11/07/2019 at 08:11PM

9
#3318 - Reynald Havard / @rey_ha

11/08/2019 at 11:21PM

9
#3319 - Minyi Zhong / @minyi_zhong

11/23/2019 at 04:11AM

9
#3320 - tomo@D2S / @e_2_718281828

12/04/2019 at 11:19PM

9
#3321 - 990 / @nisibasi990

12/05/2019 at 04:11PM

9
#3322 - King Kang / @nobagtravel

12/11/2019 at 10:28AM

9
#3323 - Dan Kilman / @dan_kilman

12/18/2019 at 08:13PM

9
#3324 - hokonch / @hokonch

12/22/2019 at 03:46PM

9
#3325 - Hector Davensburg / @hdavensburg

12/27/2019 at 10:03PM

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

01/04/2020 at 07:27AM

9
#3327 - Moye_ / @moye_

01/08/2020 at 02:56AM

9
#3328 - Halfdan S. Bechmann / @HalfdanIsLame

01/14/2020 at 09:38PM

9
#3329 - みら / @Oya_M1

01/22/2020 at 02:14PM

9
#3330 - じんぺー / @jinpei0908

02/15/2020 at 09:04AM