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 4231 remaining solutions by signing in and submitting your own entry
#4232 ํœ˜๋žŒ / @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

4232 active golfers, 11546 entries

Leaderboard (lowest score wins):
9
#3331 - Chris Gardner / @t00manybananas

05/12/2015 at 09:45PM

9
#3332 - ๐—• ๐—ฅ ๐—œ ๐—ง ๐—ง | HomeConf 2020 / @demophoon

05/13/2015 at 04:11PM

9
#3333 - Matthew Rudy Jacobs / @matthewrudy

05/15/2015 at 06:49AM

9
#3334 - GENERAL LOLIKORE / @threv

05/18/2015 at 03:16AM

9
#3335 - Simon Rycroft / @dev4rent

05/19/2015 at 01:46PM

9
#3336 - Oliver Friedrich / @slith76

05/21/2015 at 07:51PM

9
#3337 - superbriscoe / @superbriscoe

05/22/2015 at 01:28PM

9
#3338 - Alex Nussey / @AlexNussey

05/22/2015 at 06:15PM

9
#3339 - Xinyue Chen / @XinyueChen_HRT

05/24/2015 at 02:53AM

9
#3340 - Gabriel Florit / @gabrielflorit

05/24/2015 at 01:50PM

9
#3341 - Klemen Koลกir / @KarboniteKream

05/26/2015 at 01:25PM

9
#3342 - Robert Robertson / @RobertC3228687

05/27/2015 at 06:21PM

9
#3343 - Peter J. Foti / @peterjfoti

05/31/2015 at 03:08AM

9
#3344 - Lauri Niskanen / @ape3000

06/01/2015 at 04:20PM

9
#3345 - Edgard Leal / @EdgardLeal

06/03/2015 at 07:14PM

9
#3346 - Colin Shevlin / @cwshevlin

06/03/2015 at 07:16PM

9
#3347 - Steve Godin / @whilestevego

06/04/2015 at 08:39PM

9
#3348 - cc / @RousselCc

06/06/2015 at 09:54PM

9
#3349 - Dan Sackett / @dansackett

06/09/2015 at 01:58AM

9
#3350 - Guillaume Seren / @guillaumeseren

06/09/2015 at 02:09PM

9
#3351 - Sharon Leon / @0sharonleon0

06/09/2015 at 02:35PM

9
#3352 - newmaniese / @newmaniese

06/09/2015 at 02:38PM

9
#3353 - Yannick Drant / @yandrant

06/10/2015 at 04:21PM

9
#3354 - damien farce / @only15letters

06/10/2015 at 08:36PM

9
#3355 - Mac Goever / @MacGoever

06/15/2015 at 09:40AM

9
#3356 - Bartek Ciszkowski / @bartekci

06/16/2015 at 02:58AM

9
#3357 - Eat Under / @eatunder

06/22/2015 at 02:48AM

9
#3358 - Jesรบs Iniesta / @jesusiniesta

06/24/2015 at 09:42AM

9
#3359 - Epety / @sudoask

06/24/2015 at 01:48PM

9
#3360 - Seth Yoder / @McMire315

06/24/2015 at 07:25PM