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

04/05/2020 at 02:36PM

8
#3032 - mury liang / @muryliang

04/07/2020 at 02:21PM

8
#3033 - Kelvin Meyer / @Kelvin_Meyer15

04/09/2020 at 12:00PM

8
#3034 - gary sarkisian / @gesarki

04/10/2020 at 01:34AM

8
#3035 - fedja golf / @fedjagolf

04/13/2020 at 02:10AM

8
#3036 - kashikasitaro / @kashikasitaro

04/25/2020 at 06:16AM

8
#3037 - Zachary Lee / @abstractlyZach

04/25/2020 at 05:44PM

8
#3038 - Vaibhav Kaushik / @vnzongzna

04/27/2020 at 09:47PM

8
#3039 - Sabin maharjan / @Sabinma86681681

04/29/2020 at 11:29AM

8
#3040 - sydman / @sydman11

04/30/2020 at 06:41AM

8
#3041 - dule2607 / @dule26071

05/01/2020 at 10:02PM

8
#3042 - Quentin Leroy / @qnleroy

05/07/2020 at 08:18PM

8
#3043 - Vinícius Hoyer / @viniciushoyer

05/08/2020 at 01:22PM

8
#3044 - iBhagwan / @iiBhagwan

05/11/2020 at 06:02AM

8
#3045 - Jeff Cui / @jeffacce

05/12/2020 at 10:16AM

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

05/16/2020 at 01:14PM

8
#3047 - Sven Kõiv / @KoivSven

05/18/2020 at 08:54PM

8
#3048 - She3o at HOME / @Anas_She3sha3y

05/19/2020 at 02:07AM

8
#3049 - Joseph Car / @JosephCar14

05/20/2020 at 12:11AM

8
#3050 - Andreas Buhr / @andreas_buhr

05/21/2020 at 02:16PM

8
#3051 - whale / @Hari84444713

05/23/2020 at 09:17AM

8
#3052 - dotvimrc / @dotvimrc1

05/24/2020 at 06:45PM

8
#3053 - bigsystem / @bigsystem2

05/28/2020 at 03:04PM

8
#3054 - betmaster / @betmstr

05/29/2020 at 04:27PM

8
#3055 - Alek Mugnozzo / @mugnozzo

05/29/2020 at 05:05PM

8
#3056 - David Bragmark / @DBragmark

05/29/2020 at 07:17PM

8
#3057 - Finlay McAfee / @finsqm

05/31/2020 at 01:59PM

8
#3058 - natasha / @CallMeNatchos

06/01/2020 at 02:19AM

8
#3059 - Yannick / @Yannick88147038

06/01/2020 at 09:26AM

8
#3060 - Bob / @Bob37174065

06/01/2020 at 03:19PM