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

3903 active golfers, 10559 entries

Leaderboard (lowest score wins):
8
#2371 - Jamie Leary / @delearyus1

08/05/2017 at 07:56PM

8
#2372 - toddkoym / @toddkoym

08/07/2017 at 09:25PM

8
#2373 - Baine Wedlock / @BaineWedlock

08/10/2017 at 06:28PM

8
#2374 - Asno / @AsnoGordo

08/11/2017 at 03:40AM

8
#2375 - dadav 🥀 / @__dadav__

08/15/2017 at 08:36AM

8
#2376 - Wiktor Jeziorski / @WiktorJeziorsk1

08/16/2017 at 05:37PM

8
#2377 - Ryan Patterson / @CGamesPlay

08/18/2017 at 02:58AM

8
#2378 - 徐学健 / @zebrallel

08/18/2017 at 05:29AM

8
#2379 - D Fenec / @fenec230

08/18/2017 at 10:52PM

8
#2380 - Brian Vodicka / @BrianVodicka2

08/22/2017 at 10:01PM

8
#2381 - Stephen Watkin / @stephen_watkin

08/23/2017 at 04:27PM

8
#2382 - Jason / @linlin110

08/24/2017 at 01:17AM

8
#2383 - Bhatta Sushmith / @bsushmith

08/25/2017 at 07:42AM

8
#2384 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 01:02PM

8
#2385 - Pascal / @herr_planlos

08/25/2017 at 01:21PM

8
#2386 - Marc Grimpo / @MarcGrimpo

08/26/2017 at 11:12AM

8
#2387 - evangilo / @evangilo

08/26/2017 at 11:56PM

8
#2388 - Chris Patuzzo / @cpatuzzo

08/30/2017 at 04:00PM

8
#2389 - dayshade / @dayshade_7

09/01/2017 at 08:42AM

8
#2390 - Łukasz Sroka / @pixsll_

09/02/2017 at 10:19PM

8
#2391 - Jason Liang / @bummerjacket

09/05/2017 at 05:28AM

8
#2392 - lujianmei / @lujianmei

09/05/2017 at 01:05PM

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

09/05/2017 at 01:25PM

8
#2394 - Paul Sohn / @pksohn

09/05/2017 at 01:44PM

8
#2395 - harpocrates744 / @harpocrates744

09/05/2017 at 10:55PM

8
#2396 - Daniel Rasmuson / @danielrasmuson

09/06/2017 at 05:49AM

8
#2397 - bencvim / @bencvim

09/07/2017 at 10:22PM

8
#2398 - 郑晓东 / @DGivxLTVopiOQap

09/12/2017 at 03:26AM

8
#2399 - Xuzhan Sun / @xuzsun

09/13/2017 at 03:50AM

8
#2400 - Cyhors / @Cyhors

09/13/2017 at 07:07AM