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

3562 active golfers, 9544 entries

Leaderboard (lowest score wins):
7
#631 - John Doe Sr. / @johndoe67890543

05/10/2016 at 10:36PM

7
#632 - imlinder / @imLinder

05/11/2016 at 11:10AM

7
#633 - Victorien Lorcy / @LorcyVictorien

05/12/2016 at 09:13AM

7
#634 - Cù Hữu Hoàng / @Cuhuuhoang

05/13/2016 at 04:23PM

7
#635 - mebubo / @mebubo

05/14/2016 at 10:05AM

7
#636 - Majo / @majodurco

05/14/2016 at 08:29PM

7
#637 - James Lemin / @Jasmine_Elm

05/17/2016 at 08:24PM

7
#638 - Александр Уваров / @sanyauvarov

05/19/2016 at 08:03PM

7
#639 - vic © / @2r2w

05/20/2016 at 07:37AM

7
#640 - Slawek Zachcial / @SlawekZachcial

05/22/2016 at 11:52AM

7
#641 - Arijus / @argshook

05/26/2016 at 01:21PM

7
#642 - Artūras Zakrevskis / @AZakrevskis

05/26/2016 at 01:23PM

7
#643 - Tautvilas / @TautviIas

05/26/2016 at 01:26PM

7
#644 - wlads / @wlads

05/26/2016 at 11:44PM

7
#645 - Gabriel Tailor / @gabriel_tailor

06/01/2016 at 03:36AM

7
#646 - pwahs / @PwahsWeisz

06/01/2016 at 10:38AM

7
#647 - CF / @obvman

06/03/2016 at 07:56AM

7
#648 - Taras Kolodny / @trskldn

06/03/2016 at 04:07PM

7
#649 - David Cao / @pciex3

06/05/2016 at 08:46PM

7
#650 - tgmeng / @lazy_fabric

06/07/2016 at 03:18AM

7
#651 - Ameen P / @Ameen_P1

06/07/2016 at 06:26PM

7
#652 - Pablo R. Dinella / @pablordinella

06/10/2016 at 12:42PM

7
#653 - jan sos / @jann6373

06/12/2016 at 02:42PM

7
#654 - Paweł Smołka / @pawelsmolka

06/14/2016 at 02:30PM

7
#655 - Robert Perce / @robertperce

06/14/2016 at 04:38PM

7
#656 - TaoChen / @632143592Tao

06/15/2016 at 07:25AM

7
#657 - Panashe M Fundira / @PFundz

06/15/2016 at 02:13PM

7
#658 - Dave O'Keeffe / @daveok

06/17/2016 at 07:44AM

7
#659 - Jacob Niehus / @wilywampa

06/18/2016 at 06:41PM

7
#660 - Nicolas-Piel André / @NicPiel

06/21/2016 at 03:58PM