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

12/22/2019 at 12:03PM

8
#2882 - Sjoerd Thijsse / @SjoerdThijsse

12/23/2019 at 11:13PM

8
#2883 - tetstest / @tetstest4

12/24/2019 at 02:17PM

8
#2884 - fkubota 🦉 / @the_phi_is_cast

12/26/2019 at 04:54AM

8
#2885 - sapir malka / @sapir5522

12/26/2019 at 12:48PM

8
#2886 - Wenbo / @nuxping1

12/29/2019 at 04:04PM

8
#2887 - None / @sh1chuang

12/30/2019 at 12:27PM

8
#2888 - Steve Racanovic / @steve_racanovic

01/05/2020 at 10:01PM

8
#2889 - caffeineism / @caffeineism

01/06/2020 at 04:30AM

8
#2890 - novax / @novax22953288

01/08/2020 at 07:00PM

8
#2891 - Lars Haalck / @larshulk

01/09/2020 at 02:04PM

8
#2892 - Alex Bartol / @alexbartol

01/09/2020 at 07:33PM

8
#2893 - Patrick / @Pattywack18

01/10/2020 at 12:14PM

8
#2894 - 5m0r14x / @5m0r14x

01/10/2020 at 10:12PM

8
#2895 - K-jun / @K_jun1221

01/12/2020 at 03:55PM

8
#2896 - meow / @xckodut

01/18/2020 at 12:46AM

8
#2897 - algonisian / @algonisian

01/18/2020 at 07:06AM

8
#2898 - Jerry Zhu / @xpost2000games

01/21/2020 at 03:18AM

8
#2899 - Thomas Jung / @ThomasAJung

01/21/2020 at 12:54PM

8
#2900 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 03:18PM

8
#2901 - warwickrulez / @warwickrulez

01/25/2020 at 10:17PM

8
#2902 - Honza Uhlík / @JanUhlik

01/30/2020 at 12:46PM

8
#2903 - Xiangzhuo Meng / @MengXiangzhuo

01/31/2020 at 03:18PM

8
#2904 - Emil / @emilklindt

02/08/2020 at 09:43AM

8
#2905 - Renns / @Renns95250521

02/09/2020 at 09:55AM

8
#2906 - Falafel Palapel / @falafelpalapel

02/14/2020 at 07:19PM

8
#2907 - Konstantin S Kazarin / @piu_puk

02/14/2020 at 09:22PM

8
#2908 - Eugene Korbut / @vlmonk

02/14/2020 at 09:27PM

8
#2909 - stretchy / @stretch11013132

02/16/2020 at 01:22PM

8
#2910 - Steffen / @Pions90

02/16/2020 at 02:18PM