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
#2401 - steph-query / @StephQuery

09/13/2017 at 07:00PM

8
#2402 - Marco Bompani / @BompaniMarco

09/15/2017 at 02:09PM

8
#2403 - jirgn / @jirgn

09/16/2017 at 06:19PM

8
#2404 - bocadillodeatun / @bocadillodeatun

09/16/2017 at 08:02PM

8
#2405 - Koo Zhengqun / @zhengqunkoo

09/22/2017 at 01:47PM

8
#2406 - Spencer Hersom / @SpencerHersom

09/24/2017 at 11:50AM

8
#2407 - Kristoffer Ahlqvist / @ahlqvistk

09/24/2017 at 12:49PM

8
#2408 - Richard Veneracion / @rveneracion

09/24/2017 at 04:01PM

8
#2409 - ybark / @ybark

09/27/2017 at 01:24PM

8
#2410 - Michael Signorella / @MikeSignorella

09/27/2017 at 05:38PM

8
#2411 - David Paul / @davidjohnpaul

09/29/2017 at 10:30AM

8
#2412 - Luke Bryant / @LukeBryant55

09/29/2017 at 02:52PM

8
#2413 - Kota Mori / @KotaMori1

10/01/2017 at 10:51AM

8
#2414 - Matt Rixman / @MattRixman

10/02/2017 at 04:20PM

8
#2415 - Lucas / @luc_4d

10/04/2017 at 05:11PM

8
#2416 - Jon Bakies / @jonbakies

10/05/2017 at 03:29PM

8
#2417 - Ari Kahn / @ari_e_kahn

10/05/2017 at 07:52PM

8
#2418 - Elton Kamami / @pixel_grid

10/07/2017 at 09:53PM

8
#2419 - romathonat / @romathonat

10/09/2017 at 01:10PM

8
#2420 - Stephen Betts / @stephenbetts

10/11/2017 at 02:15PM

8
#2421 - Ron Alexssen / @Ralexhere

10/13/2017 at 10:27PM

8
#2422 - Kevin / @PurpSchkurp

10/15/2017 at 10:44AM

8
#2423 - George Rabanca / @grabanca

10/15/2017 at 03:30PM

8
#2424 - Gregor / @Gregor07899789

10/15/2017 at 06:23PM

8
#2425 - Rodrigo Santa Cruz / @rstcruzo

10/16/2017 at 02:27AM

8
#2426 - Paul Woestelandt / @pwoestelandt

10/18/2017 at 04:37PM

8
#2427 - Sam Coy / @samthecoy

10/25/2017 at 11:00AM

8
#2428 - MiloradKukic / @MiloradKukic

10/26/2017 at 11:56AM

8
#2429 - Sébastien Canart / @kokotchY

10/28/2017 at 08:38AM

8
#2430 - Thai Pangsakulyanont / @dtinth

10/29/2017 at 06:07PM