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

12/11/2018 at 06:06AM

8
#2672 - alex m / @al_mk_

12/12/2018 at 06:14PM

8
#2673 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 06:10AM

8
#2674 - Bennett / @bennettbackward

12/20/2018 at 12:05PM

8
#2675 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:54PM

8
#2676 - Sebastien Nicoud / @sebnukem

12/24/2018 at 02:48AM

8
#2677 - Jasper Pangilinan / @JasperP

12/26/2018 at 04:57AM

8
#2678 - sstar / @sstar60015687

12/26/2018 at 09:47AM

8
#2679 - Phil Devitt / @GeneralHav0k

01/02/2019 at 02:34PM

8
#2680 - Slawek Ligus / @ooz_ie

01/03/2019 at 12:54AM

8
#2681 - Visualizing Medicine / @VisualizeMed

01/03/2019 at 09:52PM

8
#2682 - Nikos Koukis / @bergercookie12

01/04/2019 at 10:37AM

8
#2683 - Dario Avitabile / @tutticapaci

01/04/2019 at 03:26PM

8
#2684 - Nate / @natedoran

01/06/2019 at 05:51AM

8
#2685 - Grorco / @grorco

01/09/2019 at 04:07AM

8
#2686 - alaric27 / @alaric272

01/09/2019 at 08:51AM

8
#2687 - John Smith / @JohnSmi14480159

01/09/2019 at 11:06PM

8
#2688 - abgalphabet / @abgalphabet

01/13/2019 at 07:25AM

8
#2689 - Jocelyn Lim / @j0c3lym

01/14/2019 at 06:32PM

8
#2690 - Szkieletor / @gh_end_

01/16/2019 at 10:34AM

8
#2691 - Casey K / @account_name_2

01/16/2019 at 08:42PM

8
#2692 - Thomas Surlykke / @THSurlykke

01/17/2019 at 11:50AM

8
#2693 - Zeming Lin / @ebetica

01/17/2019 at 08:01PM

8
#2694 - Kyle Safran / @kylesafran

01/19/2019 at 01:48AM

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

01/22/2019 at 11:05PM

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

01/23/2019 at 08:44AM

8
#2697 - Patrick Lavin / @LavinComputes

01/30/2019 at 05:04PM

8
#2698 - henk / @henk22862224

01/30/2019 at 06:39PM

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

01/31/2019 at 01:31PM

8
#2700 - LiterallyJustForVimGolf / @just_vim

02/04/2019 at 06:13PM