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

3828 active golfers, 10319 entries

Leaderboard (lowest score wins):
9
#3331 - Austin Letson / @austin_letson

04/25/2020 at 04:59PM

9
#3332 - 超絶電源 / @boboboxman90

05/01/2020 at 02:12PM

9
#3333 - James Dermelj / @JamesDermelj

05/04/2020 at 07:10AM

9
#3334 - Fukunishi Hashitoku / @FHashitoku

05/08/2020 at 02:45PM

9
#3335 - Pawel Wenda / @pwlwnd

05/13/2020 at 08:47PM

9
#3336 - Manish Baghel / @ManishBaghelz

05/15/2020 at 02:36AM

9
#3337 - たぬぽん / @wiz_pon

05/16/2020 at 07:38PM

9
#3338 - Mack Hutsell / @HutsellMack

05/24/2020 at 06:43PM

10
#3339 - Amit Verma / @amitv12

12/08/2014 at 11:44PM

10
#3340 - Ricardo M. Vilchis / @ajkaanbal

12/08/2014 at 11:55PM

10
#3341 - Larry Boltovskoi / @larrybolt

12/09/2014 at 01:15AM

10
#3342 - Paul Salcido / @PaulCodeMonkey

12/10/2014 at 04:33PM

10
#3343 - Juampy NR / @juampynr

12/11/2014 at 01:19PM

10
#3344 - Sergio Márquez / @SergioDMarquez

12/24/2014 at 03:02PM

10
#3345 - Jordana Lachow / @TomofBedlam

12/28/2014 at 04:48AM

10
#3346 - Gianluca Scacco / @gscacco

01/07/2015 at 11:53AM

10
#3347 - Vasily Toropov / @vasandtor

01/12/2015 at 11:17AM

10
#3348 - Jason Garber / @jasongarber

01/15/2015 at 06:15PM

10
#3349 - Steve / @Logogenics

01/16/2015 at 12:53AM

10
#3350 - Ilia Kolev / @iliakolev

01/19/2015 at 10:15AM

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

01/19/2015 at 12:11PM

10
#3352 - Evgeny Traytyak / @evgen_traytyak

01/28/2015 at 03:01PM

10
#3353 - Luc Mazardo / @lxtrmz

02/01/2015 at 08:26AM

10
#3354 - Jeff Klein / @ravioli_jazz

02/06/2015 at 08:07AM

10
#3355 - Berlin / @Berli92

02/18/2015 at 06:07PM

10
#3356 - pickled yom / @pickledyom

02/20/2015 at 03:02AM

10
#3357 - snipcademy / @snipcademy

02/23/2015 at 06:58PM

10
#3358 - Alan Sherman / @InfoLeak117

02/24/2015 at 05:39PM

10
#3359 - Julio C. Villasante / @jvillasante

03/02/2015 at 05:21PM

10
#3360 - Barchie.si / @barchie_si

03/02/2015 at 10:47PM