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

3565 active golfers, 9554 entries

Leaderboard (lowest score wins):
12
#3391 - しょーへー / @pasopeko

01/24/2015 at 02:20PM

12
#3392 - Ivan Thai / @thaivanovich

02/24/2015 at 09:49AM

12
#3393 - Ruslan Ismagilov / @is_ruslan

02/26/2015 at 10:20AM

12
#3394 - Elijah Love / @elijahdl

03/02/2015 at 03:35AM

12
#3395 - markos rendell / @markosrendell

03/03/2015 at 03:39PM

12
#3396 - shugen / @shugeno

03/03/2015 at 08:16PM

12
#3397 - Niza / @GangatN

03/17/2015 at 07:30PM

12
#3398 - Orion Osborn / @oorion_

03/17/2015 at 09:39PM

12
#3399 - Matt Stone / @m_sto

03/23/2015 at 11:18PM

12
#3400 - Uniaika / @Sairas_mieli

03/27/2015 at 10:38PM

12
#3401 - Darrell Sandstrom / @dandstrom

04/04/2015 at 12:30AM

12
#3402 - Rijnard van Tonder / @rvtond

04/27/2015 at 01:57AM

12
#3403 - luffy / @raxcoi

05/12/2015 at 03:14PM

12
#3404 - Toni Pivčević / @tpivc

05/31/2015 at 10:15AM

12
#3405 - kostya sokol / @kostyaby

06/01/2015 at 05:10PM

12
#3406 - damondouglas / @damondouglas

06/03/2015 at 03:44AM

12
#3407 - caffepocari / @caffepocari

06/20/2015 at 01:37PM

12
#3408 - jxitc / @jxitc

07/01/2015 at 01:37AM

12
#3409 - Hristo Georgiev / @hristogg1

07/02/2015 at 09:11PM

12
#3410 - dorcy valerian / @v_dorcy

07/23/2015 at 11:13AM

12
#3411 - Eric.Wang / @wwhhtt202

08/02/2015 at 07:12AM

12
#3412 - Alexandros Ntoulas / @ntoulas

08/28/2015 at 07:07PM

12
#3413 - Harshavardhan Kittur / @hbk1517

09/19/2015 at 09:48PM

12
#3414 - Cable Benjamin / @LadyDascalie

10/18/2015 at 02:52PM

12
#3415 - Max Jacobson / @maxjacobson

10/29/2015 at 02:56AM

12
#3416 - SK Liew / @liewsk

11/04/2015 at 09:33AM

12
#3417 - Charleston / @cv9828

11/28/2015 at 01:59AM

12
#3418 - Lucas McDaniel / @Ldmcdaniel109

01/21/2016 at 03:43PM

12
#3419 - Scott Traver / @ScottTraver

02/12/2016 at 10:35PM

12
#3420 - full name / @caeken1

02/15/2016 at 10:55PM