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
#2971 - Delon / @delonleonard

12/22/2019 at 12:03PM

8
#2972 - Sjoerd Thijsse / @SjoerdThijsse

12/23/2019 at 11:13PM

8
#2973 - tetstest / @tetstest4

12/24/2019 at 02:17PM

8
#2974 - fkubota 🦉 / @the_phi_is_cast

12/26/2019 at 04:54AM

8
#2975 - sapir malka / @sapir5522

12/26/2019 at 12:48PM

8
#2976 - Wenbo / @nuxping1

12/29/2019 at 04:04PM

8
#2977 - None / @sh1chuang

12/30/2019 at 12:27PM

8
#2978 - Steve Racanovic / @steve_racanovic

01/05/2020 at 10:01PM

8
#2979 - caffeineism / @caffeineism

01/06/2020 at 04:30AM

8
#2980 - novax / @novax22953288

01/08/2020 at 07:00PM

8
#2981 - Lars Haalck / @larshulk

01/09/2020 at 02:04PM

8
#2982 - Alex Bartol / @alexbartol

01/09/2020 at 07:33PM

8
#2983 - Patrick / @Pattywack18

01/10/2020 at 12:14PM

8
#2984 - 5m0r14x / @5m0r14x

01/10/2020 at 10:12PM

8
#2985 - K-jun / @K_jun1221

01/12/2020 at 03:55PM

8
#2986 - meow / @xckodut

01/18/2020 at 12:46AM

8
#2987 - algonisian / @algonisian

01/18/2020 at 07:06AM

8
#2988 - Jerry Zhu / @xpost2000games

01/21/2020 at 03:18AM

8
#2989 - Thomas Jung / @ThomasAJung

01/21/2020 at 12:54PM

8
#2990 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 03:18PM

8
#2991 - warwickrulez / @warwickrulez

01/25/2020 at 10:17PM

8
#2992 - Honza Uhlík / @JanUhlik

01/30/2020 at 12:46PM

8
#2993 - Xiangzhuo Meng / @MengXiangzhuo

01/31/2020 at 03:18PM

8
#2994 - Emil / @emilklindt

02/08/2020 at 09:43AM

8
#2995 - Renns / @Renns95250521

02/09/2020 at 09:55AM

8
#2996 - Falafel Palapel / @falafelpalapel

02/14/2020 at 07:19PM

8
#2997 - Konstantin S Kazarin / @piu_puk

02/14/2020 at 09:22PM

8
#2998 - Eugene Korbut / @vlmonk

02/14/2020 at 09:27PM

8
#2999 - stretchy / @stretch11013132

02/16/2020 at 01:22PM

8
#3000 - Steffen / @Pions90

02/16/2020 at 02:18PM