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

4215 active golfers, 11497 entries

Leaderboard (lowest score wins):
9
#3661 - JustForGiggles / @NeedOneForNow

04/03/2023 at 12:36AM

9
#3662 - steve / @steve35773420

05/14/2023 at 08:15PM

9
#3663 - Hemram Kumarapu / @H4-MM-3R

09/21/2024 at 02:31PM

9
#3664 - luke37842 / @luke37842

11/12/2024 at 06:56PM

9
#3665 - SRINIVASU SALADI / @SRINIVASUS22587

02/07/2025 at 09:54AM

10
#3666 - Amit Verma / @amitv12

12/08/2014 at 11:44PM

10
#3667 - Ricardo M. Vilchis / @ajkaanbal

12/08/2014 at 11:55PM

10
#3668 - Larry Boltovskoi / @larrybolt

12/09/2014 at 01:15AM

10
#3669 - Paul Salcido / @PaulCodeMonkey

12/10/2014 at 04:33PM

10
#3670 - Juampy NR / @juampynr

12/11/2014 at 01:19PM

10
#3671 - Sergio M / @__smarquez

12/24/2014 at 03:02PM

10
#3672 - Jordana Lachow / @TomofBedlam

12/28/2014 at 04:48AM

10
#3673 - Gianluca Scacco / @gscacco

01/07/2015 at 11:53AM

10
#3674 - Vasily Toropov / @vasandtor

01/12/2015 at 11:17AM

10
#3675 - Jason Garber / @jasongarber

01/15/2015 at 06:15PM

10
#3676 - Steve / @Logogenics

01/16/2015 at 12:53AM

10
#3677 - Ilia Kolev / @iliakolev

01/19/2015 at 10:15AM

10
#3678 - Trần Huy Vũ / @vutran54

01/19/2015 at 12:11PM

10
#3679 - Evgeny Traytyak / @evgen_traytyak

01/28/2015 at 03:01PM

10
#3680 - Luc Mazardo / @lxtrmz

02/01/2015 at 08:26AM

10
#3681 - Jeff Klein / @ravioli_jazz

02/06/2015 at 08:07AM

10
#3682 - Berlin / @Berli92

02/18/2015 at 06:07PM

10
#3683 - pickled yom / @pickledyom

02/20/2015 at 03:02AM

10
#3684 - snipcademy / @snipcademy

02/23/2015 at 06:58PM

10
#3685 - Alan Sherman / @InfoLeak117

02/24/2015 at 05:39PM

10
#3686 - Julio C. Villasante / @jvillasante

03/02/2015 at 05:21PM

10
#3687 - Barchie.si / @barchie_si

03/02/2015 at 10:47PM

10
#3688 - thrawny / @thrawn_

03/10/2015 at 03:49PM

10
#3689 - Samuel Simões / @samuelsimoes

03/11/2015 at 10:18PM

10
#3690 - Alex Plate / @AlexPl292

03/23/2015 at 07:14PM