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

4234 active golfers, 11555 entries

Leaderboard (lowest score wins):
8
#2971 - Marten Ringwelski / @Marteon27

12/07/2019 at 06:08PM

8
#2972 - Andrei Popescu / @AndreiTheory

12/09/2019 at 05:32PM

8
#2973 - Jason Neylon / @jasonneylon

12/17/2019 at 07:14PM

8
#2974 - Simon / @Simon79318261

12/18/2019 at 09:26PM

8
#2975 - 坪井和成 / @dadasutasudadas

12/20/2019 at 06:17AM

8
#2976 - James Casey / @hanavi

12/20/2019 at 11:37PM

8
#2977 - Delon / @delonleonard

12/22/2019 at 12:03PM

8
#2978 - Sjoerd Thijsse / @SjoerdThijsse

12/23/2019 at 11:13PM

8
#2979 - tetstest / @tetstest4

12/24/2019 at 02:17PM

8
#2980 - fkubota 🦉 / @the_phi_is_cast

12/26/2019 at 04:54AM

8
#2981 - sapir malka / @sapir5522

12/26/2019 at 12:48PM

8
#2982 - Wenbo / @nuxping1

12/29/2019 at 04:04PM

8
#2983 - None / @sh1chuang

12/30/2019 at 12:27PM

8
#2984 - Steve Racanovic / @steve_racanovic

01/05/2020 at 10:01PM

8
#2985 - caffeineism / @caffeineism

01/06/2020 at 04:30AM

8
#2986 - novax / @novax22953288

01/08/2020 at 07:00PM

8
#2987 - Lars Haalck / @larshulk

01/09/2020 at 02:04PM

8
#2988 - Alex Bartol / @alexbartol

01/09/2020 at 07:33PM

8
#2989 - Patrick / @Pattywack18

01/10/2020 at 12:14PM

8
#2990 - 5m0r14x / @5m0r14x

01/10/2020 at 10:12PM

8
#2991 - K-jun / @K_jun1221

01/12/2020 at 03:55PM

8
#2992 - meow / @xckodut

01/18/2020 at 12:46AM

8
#2993 - algonisian / @algonisian

01/18/2020 at 07:06AM

8
#2994 - Jerry Zhu / @xpost2000games

01/21/2020 at 03:18AM

8
#2995 - Thomas Jung / @ThomasAJung

01/21/2020 at 12:54PM

8
#2996 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 03:18PM

8
#2997 - warwickrulez / @warwickrulez

01/25/2020 at 10:17PM

8
#2998 - Honza Uhlík / @JanUhlik

01/30/2020 at 12:46PM

8
#2999 - Xiangzhuo Meng / @MengXiangzhuo

01/31/2020 at 03:18PM

8
#3000 - Emil / @emilklindt

02/08/2020 at 09:43AM