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

4202 active golfers, 11464 entries

Leaderboard (lowest score wins):
8
#2491 - Pascal / @herr_planlos

08/25/2017 at 01:21PM

8
#2492 - Marc Grimpo / @MarcGrimpo

08/26/2017 at 11:12AM

8
#2493 - evangilo / @evangilo

08/26/2017 at 11:56PM

8
#2494 - Chris Patuzzo / @cpatuzzo

08/30/2017 at 04:00PM

8
#2495 - Markus / @dayshade_7

09/01/2017 at 08:42AM

8
#2496 - Łukasz Sroka / @pixsll_

09/02/2017 at 10:19PM

8
#2497 - Jason Liang / @bummerjacket

09/05/2017 at 05:28AM

8
#2498 - lujianmei / @lujianmei

09/05/2017 at 01:05PM

8
#2499 - 心がポッキー / @lawliteqed

09/05/2017 at 01:25PM

8
#2500 - Paul Sohn / @pksohn

09/05/2017 at 01:44PM

8
#2501 - harpocrates744 / @harpocrates744

09/05/2017 at 10:55PM

8
#2502 - Daniel Rasmuson / @danielrasmuson

09/06/2017 at 05:49AM

8
#2503 - bencvim / @bencvim

09/07/2017 at 10:22PM

8
#2504 - 郑晓东 / @DGivxLTVopiOQap

09/12/2017 at 03:26AM

8
#2505 - Xuzhan Sun / @xuzsun

09/13/2017 at 03:50AM

8
#2506 - Cyhors / @Cyhors

09/13/2017 at 07:07AM

8
#2507 - steph-query / @StephQuery

09/13/2017 at 07:00PM

8
#2508 - Marco Bompani / @BompaniMarco

09/15/2017 at 02:09PM

8
#2509 - jirgn / @jirgn

09/16/2017 at 06:19PM

8
#2510 - bocadillodeatun / @bocadillodeatun

09/16/2017 at 08:02PM

8
#2511 - Koo Zhengqun / @zhengqunkoo

09/22/2017 at 01:47PM

8
#2512 - Spencer Hersom / @SpencerHersom

09/24/2017 at 11:50AM

8
#2513 - Kristoffer Ahlqvist / @ahlqvistk

09/24/2017 at 12:49PM

8
#2514 - Richard Veneracion / @rveneracion

09/24/2017 at 04:01PM

8
#2515 - ybark / @ybark

09/27/2017 at 01:24PM

8
#2516 - Michael Signorella / @MikeSignorella

09/27/2017 at 05:38PM

8
#2517 - David Paul / @davidjohnpaul

09/29/2017 at 10:30AM

8
#2518 - Luke Bryant / @LukeBryant55

09/29/2017 at 02:52PM

8
#2519 - Kota Mori / @KotaMori1

10/01/2017 at 10:51AM

8
#2520 - Matt Rixman / @MattRixman

10/02/2017 at 04:20PM