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

4215 active golfers, 11497 entries

Leaderboard (lowest score wins):
9
#3541 - Austin Ware / @AustinWare17

03/12/2018 at 06:02PM

9
#3542 - Shirley Lin / @xshirleylin

03/15/2018 at 09:30PM

9
#3543 - MrMatuski / @MrMatuski

03/22/2018 at 01:41PM

9
#3544 - sdaf sdf / @fooz0b1bz

03/24/2018 at 03:12PM

9
#3545 - Ruby / @Rubzk

03/26/2018 at 03:16AM

9
#3546 - Anonymous / @Anonymous31658

03/27/2018 at 03:27AM

9
#3547 - Михаил Фуфин / @MishaFufin

04/03/2018 at 06:30PM

9
#3548 - Nicolás Salas V. / @nicosalasv

04/09/2018 at 05:05AM

9
#3549 - (Tocci.Sakai とっちさん) / @tocci3

04/11/2018 at 02:58AM

9
#3550 - amal / @cdsudama

04/11/2018 at 03:16AM

9
#3551 - yuta takahashi / @tashua314

04/12/2018 at 06:43AM

9
#3552 - Erick Sepúlveda / @ericksepu

04/12/2018 at 03:28PM

9
#3553 - Oliver G. / @Redbrain18

04/30/2018 at 07:34PM

9
#3554 - Tom / @atomgrand

05/03/2018 at 05:41PM

9
#3555 - Endre Galaczi / @galacziendre

05/04/2018 at 01:07PM

9
#3556 - Nathanael / @ngsilverman

05/09/2018 at 04:04AM

9
#3557 - Wasistdasfuer1Welt / @Wasistdasfuer1W

05/14/2018 at 11:17AM

9
#3558 - のあ / @2KDOyv849VQrBHT

05/21/2018 at 03:18PM

9
#3559 - tue2truong / @tue2truong1

05/25/2018 at 01:30PM

9
#3560 - Plexigras / @plexigras

06/02/2018 at 05:50PM

9
#3561 - Florian Kempenich / @ThisIsFlorianK

06/07/2018 at 06:19PM

9
#3562 - Patrick Huck / @tschaume

06/28/2018 at 11:35PM

9
#3563 - 김예지 / @8PjPnQfmHR2caqM

06/29/2018 at 07:53AM

9
#3564 - 함근상 / @tEkfiAoKJdn11hT

06/29/2018 at 07:59AM

9
#3565 - 나라 / @naracon03

06/29/2018 at 07:59AM

9
#3566 - Shuai-Hsun Lee / @ShuaiHsun

07/02/2018 at 10:38PM

9
#3567 - 이종길 / @NTJDbDYVbmn68FZ

07/03/2018 at 12:49AM

9
#3568 - 최종원 / @lastone9182

07/15/2018 at 01:10PM

9
#3569 - 伺か / @ojiry

07/17/2018 at 09:46AM

9
#3570 - Andrey / @Andrey41499812

07/17/2018 at 03:17PM