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
#3451 - Nakvasiuk Vasyl / @vaxXxa

05/02/2016 at 03:54PM

9
#3452 - Zeca / @zeca_foz

05/03/2016 at 10:44AM

9
#3453 - Elliott Mantock / @elGatoMantocko

05/03/2016 at 09:02PM

9
#3454 - Max / @_mluzuriaga

05/10/2016 at 03:16AM

9
#3455 - Jon E. Eguiluz 🏳️‍🌈 / @viroide

05/29/2016 at 12:53PM

9
#3456 - talineo / @talineo_

06/02/2016 at 03:38PM

9
#3457 - Alexandre Lion / @lnalx

06/04/2016 at 01:55PM

9
#3458 - king sized toilet / @ohwowcrazy

06/07/2016 at 03:16PM

9
#3459 - Zhao Bin / @ZhaoBin2

06/07/2016 at 03:56PM

9
#3460 - Denys Zadorozhnyi / @greenden

06/12/2016 at 04:32PM

9
#3461 - Kento Kaneko / @kentokaneko

06/15/2016 at 04:42AM

9
#3462 - Rein Van Imschoot / @reinvanimschoot

06/16/2016 at 08:25PM

9
#3463 - Kirill Sidenko / @KirillSidenko

06/19/2016 at 09:32AM

9
#3464 - Sanjay / @patelsan

06/19/2016 at 03:49PM

9
#3465 - Jan Feindt / @hun_knee

06/23/2016 at 01:10PM

9
#3466 - malet / @Malet

06/23/2016 at 01:50PM

9
#3467 - Stephan Bugnon / @stephanbugnon

06/23/2016 at 04:05PM

9
#3468 - Yifan Ge / @gyifan

06/23/2016 at 07:37PM

9
#3469 - Edvin (Bait) / @EdvinOlofsson92

06/28/2016 at 10:52AM

9
#3470 - Amory Schlender / @schlamory

07/08/2016 at 05:21AM

9
#3471 - Jonathan Werner / @jonathanewerner

07/09/2016 at 04:28PM

9
#3472 - Ilker Mutlu / @ilkermutlu

07/12/2016 at 02:31PM

9
#3473 - Dan Madden / @guthran

07/15/2016 at 01:32PM

9
#3474 - Christopher Fujino / @chrisfujino

07/16/2016 at 02:51AM

9
#3475 - curist / @curist

07/26/2016 at 03:27AM

9
#3476 - CoffeeIntoCode / @_coffeeintocode

08/04/2016 at 04:30PM

9
#3477 - Ratmonkey / @Ratm0nkey

08/04/2016 at 08:33PM

9
#3478 - Richard Laub / @RWLaub91

08/07/2016 at 05:41AM

9
#3479 - amospalla / @amospalla

08/11/2016 at 03:47PM

9
#3480 - davidcgv / @davidcgv

08/11/2016 at 10:02PM