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
#3391 - Otto / @OttoRottier

10/19/2015 at 07:42PM

9
#3392 - Cameron Fitzgerald / @camfitz

10/21/2015 at 12:40AM

9
#3393 - Arseny Zarechnev / @evindor

10/22/2015 at 03:49PM

9
#3394 - Conor Ryan / @conorjryan

10/28/2015 at 07:37AM

9
#3395 - Rene Tianco / @murlockslol

10/29/2015 at 05:03AM

9
#3396 - Mike Mepham / @meppum

10/30/2015 at 04:15AM

9
#3397 - Rafeh Qazi / @RafehQ

11/03/2015 at 11:09PM

9
#3398 - John Clara / @johnanthclara

11/12/2015 at 07:06AM

9
#3399 - Stanislav Nikolov / @stanislavLTB

11/17/2015 at 09:04AM

9
#3400 - C / @c_getTweet

11/18/2015 at 05:52AM

9
#3401 - Nicolas Nistal / @niconistal

11/19/2015 at 12:08AM

9
#3402 - Daniil Nguen / @DNguen

11/24/2015 at 03:31PM

9
#3403 - Arūnas Smaliukas / @ArnasSmaliukas1

11/28/2015 at 07:31PM

9
#3404 - retro / @tryphopp

12/09/2015 at 10:48AM

9
#3405 - Thomas Lovén / @thomasloven

12/09/2015 at 03:22PM

9
#3406 - brett / @brettyukich

12/10/2015 at 09:35PM

9
#3407 - Knarf / @Knarf93

12/10/2015 at 09:51PM

9
#3408 - Mikael Axelsson / @Mikael_Axelsson

12/23/2015 at 01:23PM

9
#3409 - andrei / @CebotariAndrei

12/27/2015 at 10:23AM

9
#3410 - Jakob Schöttl / @jschoettl

12/31/2015 at 07:59AM

9
#3411 - Luke Lancaster / @luketlancaster

01/05/2016 at 10:13PM

9
#3412 - Charles Reynolds / @reynoldscem

01/07/2016 at 05:55PM

9
#3413 - 戸田 薫 / @KaoruToda

01/10/2016 at 04:31AM

9
#3414 - omgmikey / @plsnobullymikey

01/11/2016 at 05:01AM

9
#3415 - Antoine Brunet / @AntoineBrunet

01/11/2016 at 06:57PM

9
#3416 - hammboning / @_PuttPirates_

01/13/2016 at 06:57PM

9
#3417 - bsjd / @bsjd

01/14/2016 at 12:50PM

9
#3418 - KongFu / @_kongfu

01/16/2016 at 09:40AM

9
#3419 - TETSU / @kaoru6strings

01/19/2016 at 12:28PM

9
#3420 - TS / @tiredsounds

01/27/2016 at 03:41AM