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

3950 active golfers, 10694 entries

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

02/17/2020 at 02:51AM

8
#2912 - KingYames / @JamesZeHunter

02/17/2020 at 03:47AM

8
#2913 - Chris League / @chrisleague

02/23/2020 at 07:55PM

8
#2914 - Adam Sanghera / @AdamSanghera

02/24/2020 at 12:13AM

8
#2915 - perTheGolfer / @GolferPer

02/27/2020 at 10:56AM

8
#2916 - eshel / @EshelBM

02/27/2020 at 02:36PM

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

02/29/2020 at 05:34PM

8
#2918 - floyd / @floyd10086

03/02/2020 at 04:10AM

8
#2919 - Muhammad Affan / @maqur5

03/04/2020 at 07:51PM

8
#2920 - golferN / @golferN3

03/10/2020 at 09:18PM

8
#2921 - Paul Parker / @PaulDesmoParker

03/11/2020 at 02:26PM

8
#2922 - Jan / @Howi48

03/13/2020 at 10:31AM

8
#2923 - Tomas / @Tombakas

03/14/2020 at 01:07AM

8
#2924 - asierrayk / @asierrayk

03/14/2020 at 02:44PM

8
#2925 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/15/2020 at 10:35PM

8
#2926 - Edan Sneh / @edan_sneh

03/17/2020 at 06:13AM

8
#2927 - Ivan / @SpiritHNTR

03/18/2020 at 11:48AM

8
#2928 - vtls / @vtls16

03/18/2020 at 04:36PM

8
#2929 - BnnGolfer / @BnnGolfer

03/20/2020 at 03:05PM

8
#2930 - vvaannaa3 / @vvaannaa3

03/21/2020 at 10:22PM

8
#2931 - Joe Farnsworth / @JoeFarnsworth

03/22/2020 at 08:24PM

8
#2932 - Yan Xue / @_yxue

03/23/2020 at 05:16AM

8
#2933 - Ryan Nevius / @ryannevius

03/24/2020 at 06:07AM

8
#2934 - Alexander / @Alexand64026860

03/25/2020 at 02:36PM

8
#2935 - etherflow / @etherfl0w

03/29/2020 at 05:24PM

8
#2936 - Mats Faugli / @matsfaugli

03/29/2020 at 09:51PM

8
#2937 - relastle / @relastle

03/30/2020 at 04:36AM

8
#2938 - Greg Lee / @real_gregliest

04/01/2020 at 05:40AM

8
#2939 - Nathan Hartman / @hnathan918

04/02/2020 at 04:40PM

8
#2940 - Lop / @Numeross_

04/02/2020 at 10:39PM