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

4214 active golfers, 11496 entries

Leaderboard (lowest score wins):
8
#3001 - Pham Tuan Anh / @anhpt379

02/17/2020 at 02:51AM

8
#3002 - KingYames / @JamesZeHunter

02/17/2020 at 03:47AM

8
#3003 - Chris League / @chrisleague

02/23/2020 at 07:55PM

8
#3004 - Adam Sanghera / @AdamSanghera

02/24/2020 at 12:13AM

8
#3005 - perTheGolfer / @GolferPer

02/27/2020 at 10:56AM

8
#3006 - eshel / @EshelBM

02/27/2020 at 02:36PM

8
#3007 - しまじゃき / @obknt

02/29/2020 at 05:34PM

8
#3008 - floyd / @floyd10086

03/02/2020 at 04:10AM

8
#3009 - Affan / @maqur_

03/04/2020 at 07:51PM

8
#3010 - golferN / @golferN3

03/10/2020 at 09:18PM

8
#3011 - Paul Parker / @PaulDesmoParker

03/11/2020 at 02:26PM

8
#3012 - Jan / @Howi48

03/13/2020 at 10:31AM

8
#3013 - Tomas / @Tombakas

03/14/2020 at 01:07AM

8
#3014 - asierrayk / @asierrayk

03/14/2020 at 02:44PM

8
#3015 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/15/2020 at 10:35PM

8
#3016 - Edan Sneh / @edan_sneh

03/17/2020 at 06:13AM

8
#3017 - Ivan / @SpiritHNTR

03/18/2020 at 11:48AM

8
#3018 - vtls / @vtls16

03/18/2020 at 04:36PM

8
#3019 - BnnGolfer / @BnnGolfer

03/20/2020 at 03:05PM

8
#3020 - vvaannaa3 / @vvaannaa3

03/21/2020 at 10:22PM

8
#3021 - Joe Farnsworth / @JoeFarnsworth

03/22/2020 at 08:24PM

8
#3022 - Yan Xue / @_yxue

03/23/2020 at 05:16AM

8
#3023 - Ryan Nevius / @ryannevius

03/24/2020 at 06:07AM

8
#3024 - Alexander / @Alexand64026860

03/25/2020 at 02:36PM

8
#3025 - etherflow / @etherfl0w

03/29/2020 at 05:24PM

8
#3026 - Mats Faugli / @matsfaugli

03/29/2020 at 09:51PM

8
#3027 - relastle / @relastle

03/30/2020 at 04:36AM

8
#3028 - Greg Lee / @real_gregliest

04/01/2020 at 05:40AM

8
#3029 - Nathan Hartman / @hnathan918

04/02/2020 at 04:40PM

8
#3030 - Lop / @Numeross_

04/02/2020 at 10:39PM