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

4114 active golfers, 11141 entries

Leaderboard (lowest score wins):
9
#3571 - Lex Romanov / @feax_ru

09/29/2020 at 05:35PM

9
#3572 - Arend Peter / @APCastelein

10/01/2020 at 01:25AM

9
#3573 - rr / @rodgeur31

10/14/2020 at 09:49PM

9
#3574 - hhh / @hhh78116797

10/17/2020 at 04:29PM

9
#3575 - Matt Milliron / @valueiron

11/28/2020 at 05:01AM

9
#3576 - david / @david52856086

12/15/2020 at 10:52PM

9
#3577 - doran / @doran89993520

12/21/2020 at 04:53PM

9
#3578 - 방일우 / @CD5PpB36ZR5kWtk

01/07/2021 at 12:46AM

9
#3579 - ルシュメ / @arupakanohito

12/12/2021 at 09:51AM

9
#3580 - 一茶(ISSA) / @edge2992

05/29/2022 at 01:45AM

10
#3581 - Amit Verma / @amitv12

12/08/2014 at 11:44PM

10
#3582 - Ricardo M. Vilchis / @ajkaanbal

12/08/2014 at 11:55PM

10
#3583 - Larry Boltovskoi / @larrybolt

12/09/2014 at 01:15AM

10
#3584 - Paul Salcido / @PaulCodeMonkey

12/10/2014 at 04:33PM

10
#3585 - Juampy NR / @juampynr

12/11/2014 at 01:19PM

10
#3586 - Sergio M / @__smarquez

12/24/2014 at 03:02PM

10
#3587 - Jordana Lachow / @TomofBedlam

12/28/2014 at 04:48AM

10
#3588 - Gianluca Scacco / @gscacco

01/07/2015 at 11:53AM

10
#3589 - Vasily Toropov / @vasandtor

01/12/2015 at 11:17AM

10
#3590 - Jason Garber / @jasongarber

01/15/2015 at 06:15PM

10
#3591 - Steve / @Logogenics

01/16/2015 at 12:53AM

10
#3592 - Ilia Kolev / @iliakolev

01/19/2015 at 10:15AM

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

01/19/2015 at 12:11PM

10
#3594 - Evgeny Traytyak / @evgen_traytyak

01/28/2015 at 03:01PM

10
#3595 - Luc Mazardo / @lxtrmz

02/01/2015 at 08:26AM

10
#3596 - Jeff Klein / @ravioli_jazz

02/06/2015 at 08:07AM

10
#3597 - Berlin / @Berli92

02/18/2015 at 06:07PM

10
#3598 - pickled yom / @pickledyom

02/20/2015 at 03:02AM

10
#3599 - snipcademy / @snipcademy

02/23/2015 at 06:58PM

10
#3600 - Alan Sherman / @InfoLeak117

02/24/2015 at 05:39PM