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

4213 active golfers, 11494 entries

Leaderboard (lowest score wins):
9
#3331 - Lauri Niskanen / @ape3000

06/01/2015 at 04:20PM

9
#3332 - Edgard Leal / @EdgardLeal

06/03/2015 at 07:14PM

9
#3333 - Colin Shevlin / @cwshevlin

06/03/2015 at 07:16PM

9
#3334 - Steve Godin / @whilestevego

06/04/2015 at 08:39PM

9
#3335 - cc / @RousselCc

06/06/2015 at 09:54PM

9
#3336 - Dan Sackett / @dansackett

06/09/2015 at 01:58AM

9
#3337 - Guillaume Seren / @guillaumeseren

06/09/2015 at 02:09PM

9
#3338 - Sharon Leon / @0sharonleon0

06/09/2015 at 02:35PM

9
#3339 - newmaniese / @newmaniese

06/09/2015 at 02:38PM

9
#3340 - Yannick Drant / @yandrant

06/10/2015 at 04:21PM

9
#3341 - damien farce / @only15letters

06/10/2015 at 08:36PM

9
#3342 - Mac Goever / @MacGoever

06/15/2015 at 09:40AM

9
#3343 - Bartek Ciszkowski / @bartekci

06/16/2015 at 02:58AM

9
#3344 - Eat Under / @eatunder

06/22/2015 at 02:48AM

9
#3345 - Jesús Iniesta / @jesusiniesta

06/24/2015 at 09:42AM

9
#3346 - Epety / @sudoask

06/24/2015 at 01:48PM

9
#3347 - Seth Yoder / @McMire315

06/24/2015 at 07:25PM

9
#3348 - Y.Imamoto / @imamotts

06/25/2015 at 10:58AM

9
#3349 - jason / @jch_liu

06/30/2015 at 12:25AM

9
#3350 - mikebailey / @mikebailey

07/01/2015 at 04:52AM

9
#3351 - Joshua Draper / @JoshuaBDraper

07/01/2015 at 09:12PM

9
#3352 - Andreas Adelsberger / @punknroll

07/02/2015 at 05:56AM

9
#3353 - Marlo Vlietstra / @daure123

07/03/2015 at 10:32AM

9
#3354 - Shizukesa / @Shizukesa

07/06/2015 at 06:21PM

9
#3355 - Zsolt Fekete / @feketezsolt

07/08/2015 at 05:00PM

9
#3356 - Bucker Fuskyote / @MooglePower

07/12/2015 at 04:00AM

9
#3357 - 江裕诚 / @fatjyc

07/14/2015 at 02:57PM

9
#3358 - Dan Piponi / @sigfpe

07/20/2015 at 09:53PM

9
#3359 - Ganiks Liu / @GaniksLiu

07/25/2015 at 08:38AM

9
#3360 - CoCo Loco / @lc2817

07/30/2015 at 06:16AM