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

4215 active golfers, 11497 entries

Leaderboard (lowest score wins):
9
#3601 - とうがらし / @XgaraI7

07/23/2019 at 12:16AM

9
#3602 - Patrick S. / @Patst1005

08/08/2019 at 07:54PM

9
#3603 - André Reigoto / @AndreReigoto

08/10/2019 at 04:52AM

9
#3604 - Tom 📡 / @thomaspsteven

08/24/2019 at 12:43AM

9
#3605 - spock900 / @spock9002

08/24/2019 at 07:04AM

9
#3606 - excalipoor / @pawlrus

09/03/2019 at 07:02PM

9
#3607 - Phuc Ngo Hoang Anh / @nhap96

09/12/2019 at 07:49PM

9
#3608 - Yannick Gladow / @y_gldw

09/17/2019 at 07:34AM

9
#3609 - Ariel Miculas / @ArielMiculas

09/18/2019 at 11:14PM

9
#3610 - Juan Francisco Bertona / @Weed1an

10/11/2019 at 11:44AM

9
#3611 - Max Williams / @notmaxbutmax

10/15/2019 at 11:35PM

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

10/19/2019 at 10:05AM

9
#3613 - Cardboard Cat / @CardboardCatMTG

10/24/2019 at 02:56AM

9
#3614 - __kiyo / @__kiyo_n

11/04/2019 at 03:32AM

9
#3615 - Chris Covert / @covertcj

11/07/2019 at 08:11PM

9
#3616 - Minyi Zhong / @minyi_zhong

11/23/2019 at 04:11AM

9
#3617 - tomo@D2S / @e_2_718281828

12/04/2019 at 11:19PM

9
#3618 - 990 / @nisibasi990

12/05/2019 at 04:11PM

9
#3619 - King Kang / @nobagtravel

12/11/2019 at 10:28AM

9
#3620 - Dan Kilman / @dan_kilman

12/18/2019 at 08:13PM

9
#3621 - hokonch / @hokonch

12/22/2019 at 03:46PM

9
#3622 - Hector Davensburg / @hdavensburg

12/27/2019 at 10:03PM

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

01/04/2020 at 07:27AM

9
#3624 - Moye_ / @moye_

01/08/2020 at 02:56AM

9
#3625 - Halfdan S. Bechmann / @HalfdanIsLame

01/14/2020 at 09:38PM

9
#3626 - みら / @Oya_M1

01/22/2020 at 02:14PM

9
#3627 - じんぺー / @jinpei0908

02/15/2020 at 09:04AM

9
#3628 - Alvaro Melendez / @alvaromelendezh

02/21/2020 at 05:58PM

9
#3629 - ser / @ser_robo

02/28/2020 at 01:56PM

9
#3630 - Ishi / @HalloWard1

03/08/2020 at 10:04AM