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
#2941 - RaylanFox / @RaylanFox

04/05/2020 at 02:36PM

8
#2942 - mury liang / @muryliang

04/07/2020 at 02:21PM

8
#2943 - Kelvin Meyer / @Kelvin_Meyer15

04/09/2020 at 12:00PM

8
#2944 - gary sarkisian / @gesarki

04/10/2020 at 01:34AM

8
#2945 - fedja golf / @FedjaGolf

04/13/2020 at 02:10AM

8
#2946 - kashikasitaro / @kashikasitaro

04/25/2020 at 06:16AM

8
#2947 - Zachary Lee / @abstractlyZach

04/25/2020 at 05:44PM

8
#2948 - Vaibhav Kaushik / @vnzongzna

04/27/2020 at 09:47PM

8
#2949 - Sabin maharjan / @Sabinma86681681

04/29/2020 at 11:29AM

8
#2950 - sydman / @sydman11

04/30/2020 at 06:41AM

8
#2951 - dule2607 / @dule26071

05/01/2020 at 10:02PM

8
#2952 - Quentin Leroy / @qnleroy

05/07/2020 at 08:18PM

8
#2953 - Vinícius Hoyer / @viniciushoyer

05/08/2020 at 01:22PM

8
#2954 - Bhagwan / @El_Bhagwan

05/11/2020 at 06:02AM

8
#2955 - Jeff Cui / @jeffacce

05/12/2020 at 10:16AM

8
#2956 - Jérémy Caldas / @jeremcs

05/16/2020 at 01:14PM

8
#2957 - Sven Kõiv / @KoivSven

05/18/2020 at 08:54PM

8
#2958 - She3o at HOME / @Anas_She3sha3y

05/19/2020 at 02:07AM

8
#2959 - Joseph Car / @JosephCar14

05/20/2020 at 12:11AM

8
#2960 - Andreas Buhr / @andreas_buhr

05/21/2020 at 02:16PM

8
#2961 - whale / @Hari84444713

05/23/2020 at 09:17AM

8
#2962 - dotvimrc / @dotvimrc1

05/24/2020 at 06:45PM

8
#2963 - bigsystem / @bigsystem2

05/28/2020 at 03:04PM

8
#2964 - betmaster / @betmstr

05/29/2020 at 04:27PM

8
#2965 - Alek Mugnozzo / @mugnozzo

05/29/2020 at 05:05PM

8
#2966 - David Bragmark / @DBragmark

05/29/2020 at 07:17PM

8
#2967 - Finlay l͓̽o͓̽c͓̽k͓̽e͓̽d͓̽d͓̽o͓̽w͓̽n͓̽ McAfee / @finsqm

05/31/2020 at 01:59PM

8
#2968 - natasha / @CallMeNatchos

06/01/2020 at 02:19AM

8
#2969 - Yannick / @Yannick88147038

06/01/2020 at 09:26AM

8
#2970 - Bob / @Bob37174065

06/01/2020 at 03:19PM