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):
10
#3811 - サイシ / @tairar_314

05/08/2022 at 09:44PM

11
#3812 - Julien Sabotage / @anerdwithaknife

12/19/2014 at 09:54PM

11
#3813 - Eric Biven / @EricBiven

12/31/2014 at 08:03PM

11
#3814 - manish mishra / @manishrdmishra

01/12/2015 at 11:33PM

11
#3815 - Giorgio / @Gpx

01/19/2015 at 06:38PM

11
#3816 - gnobbles / @gnobbles

01/22/2015 at 02:41AM

11
#3817 - Tomi Savolainen / @tomi_savolainen

01/23/2015 at 02:32PM

11
#3818 - 沸腾钢 / @tobecloud

02/08/2015 at 10:02AM

11
#3819 - Camilla / @MsFaceless

02/11/2015 at 05:58AM

11
#3820 - wilddog64 / @chengkai318

02/11/2015 at 11:00PM

11
#3821 - OlivierLi / @LiZhongSin

02/16/2015 at 08:30PM

11
#3822 - Dmitry Zudochkin / @zudochkin

02/17/2015 at 07:37PM

11
#3823 - Pierre / @_coaxial

02/23/2015 at 07:16PM

11
#3824 - Max Rahm / @ac90b671

03/12/2015 at 10:07PM

11
#3825 - Aria / @AriaMoKr

03/12/2015 at 10:51PM

11
#3826 - luiz agostinho / @variom_br

03/16/2015 at 01:24PM

11
#3827 - Khalid Harun / @KhalidHarun

03/19/2015 at 05:25AM

11
#3828 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/23/2015 at 12:08PM

11
#3829 - boxcar willy / @goodbobhunting

03/25/2015 at 02:48AM

11
#3830 - Andrew Larson / @applarson

04/15/2015 at 12:25AM

11
#3831 - Ken Powers / @knpwrs

05/19/2015 at 03:00AM

11
#3832 - コダマ / @pyorotan

05/24/2015 at 12:21AM

11
#3833 - Suraj Thakkar / @surajjthakkar

05/26/2015 at 07:45PM

11
#3834 - Emmanuel Caillé / @e_caille

06/05/2015 at 07:45PM

11
#3835 - meme master / @meemlover420

07/07/2015 at 07:32AM

11
#3836 - X. / @xli030

08/13/2015 at 07:21AM

11
#3837 - Itamar Gal / @novicevimgolfer

08/16/2015 at 12:51AM

11
#3838 - Mika .B / @Michael_Ben_Ali

09/10/2015 at 01:13PM

11
#3839 - Aaron Fortune / @aaron_fortune

09/19/2015 at 11:18PM

11
#3840 - Anand Ghorpade / @snort_snort

10/30/2015 at 02:05PM