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

4114 active golfers, 11141 entries

Leaderboard (lowest score wins):
10
#3631 - Brandon Milam / @jbmilam950

07/07/2015 at 12:21AM

10
#3632 - Ray / @HaskRay

07/08/2015 at 04:54PM

10
#3633 - DJ Lee / @deej337

07/17/2015 at 09:52PM

10
#3634 - Jose Mari Consador / @joseconsador

07/22/2015 at 03:20AM

10
#3635 - Florian Lücke / @CannibalGorilla

07/22/2015 at 08:09AM

10
#3636 - Rory McGloin / @RoryMcGloin

07/24/2015 at 05:42PM

10
#3637 - McKay Ward / @mckayward

07/25/2015 at 09:11PM

10
#3638 - Bakhti Aripov / @bakhti

07/29/2015 at 10:46AM

10
#3639 - Will Munn / @lfsaw

08/13/2015 at 08:59PM

10
#3640 - broella3 / @broella3

08/18/2015 at 02:07PM

10
#3641 - Emily Houlihan / @houliganation

08/19/2015 at 05:33PM

10
#3642 - Will Furnass / @WillFurnass

08/23/2015 at 08:32AM

10
#3643 - darfontz sucks / @buttsToTheSky

08/25/2015 at 05:41PM

10
#3644 - Bez Hermoso / @BezHermoso

08/30/2015 at 07:52PM

10
#3645 - Joachim / @errrsooo

09/01/2015 at 10:37PM

10
#3646 - Morten Lund / @92morten

09/11/2015 at 04:15PM

10
#3647 - valerian dorcy / @dorcy_v

09/18/2015 at 05:14PM

10
#3648 - Cory Knapp / @coryknapp

09/26/2015 at 02:55AM

10
#3649 - No Holiness / @NoHoliness

09/29/2015 at 06:43AM

10
#3650 - gz / @gonizahavy

10/02/2015 at 02:45PM

10
#3651 - Adam Cook / @apcook

10/02/2015 at 06:53PM

10
#3652 - Davy Jones / @OpsDavy

10/03/2015 at 10:47PM

10
#3653 - Lošmi / @loshmibbq

10/08/2015 at 08:45AM

10
#3654 - coltruindie / @e10nevwa

10/09/2015 at 03:29PM

10
#3655 - Collin Richards / @MrBallinCollin

10/15/2015 at 12:17AM

10
#3656 - Akshay Joshi / @joshiaks91

10/16/2015 at 08:51PM

10
#3657 - Rémi / @daaaaft

10/21/2015 at 07:53AM

10
#3658 - Maciej Jabłoński / @j4b0l

10/28/2015 at 09:23PM

10
#3659 - Betoman / @_betoman

11/01/2015 at 12:37AM

10
#3660 - Gavin Stark / @GavinStark

11/20/2015 at 12:44AM