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
#2761 - Marty Boren / @beanmaximalist

12/11/2018 at 06:06AM

8
#2762 - alex m / @al_mk_

12/12/2018 at 06:14PM

8
#2763 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 06:10AM

8
#2764 - Bennett / @bennettbackward

12/20/2018 at 12:05PM

8
#2765 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:54PM

8
#2766 - Sebastien Nicoud / @sebnukem

12/24/2018 at 02:48AM

8
#2767 - Jasper Pangilinan / @JasperP

12/26/2018 at 04:57AM

8
#2768 - sstar / @sstar60015687

12/26/2018 at 09:47AM

8
#2769 - Phil Devitt / @GeneralHav0k

01/02/2019 at 02:34PM

8
#2770 - Slawek Ligus / @ooz_ie

01/03/2019 at 12:54AM

8
#2771 - Visualizing Medicine / @VisualizeMed

01/03/2019 at 09:52PM

8
#2772 - Nikos Koukis / @bergercookie12

01/04/2019 at 10:37AM

8
#2773 - Dario Avitabile / @tutticapaci

01/04/2019 at 03:26PM

8
#2774 - Nate / @natedoran

01/06/2019 at 05:51AM

8
#2775 - Grorco / @grorco

01/09/2019 at 04:07AM

8
#2776 - alaric27 / @alaric272

01/09/2019 at 08:51AM

8
#2777 - John Smith / @JohnSmi14480159

01/09/2019 at 11:06PM

8
#2778 - abgalphabet / @abgalphabet

01/13/2019 at 07:25AM

8
#2779 - Jocelyn Lim / @j0c3lym

01/14/2019 at 06:32PM

8
#2780 - Szkieletor / @gh_end_

01/16/2019 at 10:34AM

8
#2781 - Casey K / @account_name_2

01/16/2019 at 08:42PM

8
#2782 - Thomas Surlykke / @THSurlykke

01/17/2019 at 11:50AM

8
#2783 - Zeming Lin / @ebetica

01/17/2019 at 08:01PM

8
#2784 - Kyle Safran / @kylesafran

01/19/2019 at 01:48AM

8
#2785 - κ°•ν˜„ / @Applesquiz

01/22/2019 at 11:05PM

8
#2786 - BaffaloP πŸƒπŸŽ¨ / @bbaffalopp

01/23/2019 at 08:44AM

8
#2787 - Patrick Lavin / @LavinComputes

01/30/2019 at 05:04PM

8
#2788 - henk / @henk22862224

01/30/2019 at 06:39PM

8
#2789 - ι»˜η½•ι»˜εΎ· / @Rt6RjEAJ987Woes

01/31/2019 at 01:31PM

8
#2790 - LiterallyJustForVimGolf / @just_vim

02/04/2019 at 06:13PM