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
#3481 - Ewoud Smeur / @Ewoud90

08/22/2016 at 09:17PM

9
#3482 - Ardi / @e_maniacs

09/01/2016 at 06:45AM

9
#3483 - Koudougou / @OpenPatate

09/23/2016 at 02:24PM

9
#3484 - Christophe Perrotin / @ChrisPerSurTwit

09/24/2016 at 04:17PM

9
#3485 - Kevin Ilphrin Pellet / @Kilphrin

10/05/2016 at 09:51PM

9
#3486 - Joël Christ / @jjlchrist

10/07/2016 at 01:25PM

9
#3487 - Дмитрий Кремез / @dima_kremez

10/16/2016 at 06:48PM

9
#3488 - Mark Dawson / @drmarkdawson

10/24/2016 at 09:14PM

9
#3489 - Shmelev Jaroslav / @hummelchen0

10/30/2016 at 12:06PM

9
#3490 - timerella® / @timerella

11/16/2016 at 08:41PM

9
#3491 - holy_sin / @0zero0

12/09/2016 at 07:37AM

9
#3492 - Pablo Fonseca / @pablobfonseca

12/15/2016 at 08:43PM

9
#3493 - Pretty big deal / @calvinhp

01/04/2017 at 01:37PM

9
#3494 - Nico Jansen / @nicojansen1804

01/04/2017 at 07:20PM

9
#3495 - Tith Chantara / @TithChantara

01/12/2017 at 11:32PM

9
#3496 - Chris Hughes / @ChristofHughes

01/15/2017 at 08:33PM

9
#3497 - Michael Topal / @h4ckt1c

01/27/2017 at 07:49AM

9
#3498 - Александр Афонин / @Tuch3k

01/27/2017 at 11:08PM

9
#3499 - Patrik Pihlström / @metacognizance

02/03/2017 at 02:14PM

9
#3500 - ben eisner / @b_eisner

02/09/2017 at 08:07AM

9
#3501 - 'Yuno / @iweron

02/12/2017 at 02:44PM

9
#3502 - Nate Casale / @Castallion

02/22/2017 at 05:45PM

9
#3503 - jack / @jack28887741

02/23/2017 at 11:11AM

9
#3504 - 박명호 / @cruck103

02/24/2017 at 12:11PM

9
#3505 - camden bickel / @camdenbickel

02/24/2017 at 09:09PM

9
#3506 - Sven Langer / @sven_langer

02/26/2017 at 11:42AM

9
#3507 - YuKai Lin / @YuKai_Lin5566

03/08/2017 at 05:50AM

9
#3508 - Matthieu Honel / @ocus

03/10/2017 at 04:11PM

9
#3509 - Eric Coleman / @EpicColeman

03/16/2017 at 07:34PM

9
#3510 - Dhruva Sagar / @dhruvasagar

04/03/2017 at 06:17AM