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

3903 active golfers, 10559 entries

Leaderboard (lowest score wins):
8
#2461 - Dominic Z / @thammaaa

12/21/2017 at 09:30AM

8
#2462 - 小山内まい / @osanamity

12/23/2017 at 06:28PM

8
#2463 - ぐり / @Guri1999120

01/01/2018 at 10:12AM

8
#2464 - Антон Корольков / @Toshegg

01/02/2018 at 10:15AM

8
#2465 - Spacesh1p / @spacesh1pdev

01/02/2018 at 03:30PM

8
#2466 - murmurs / @mrmrs_

01/04/2018 at 03:05PM

8
#2467 - Moritz Manner / @moritz_manner

01/07/2018 at 10:36PM

8
#2468 - Paul Bunch / @gigatesla

01/11/2018 at 10:24PM

8
#2469 - John C Shea / @MHSSachems

01/14/2018 at 10:53AM

8
#2470 - LungZeno / @LungZenoOpen

01/17/2018 at 09:55AM

8
#2471 - Jacob Tailor / @spydronex

01/25/2018 at 06:03PM

8
#2472 - Adam Townsend / @despendesigns

01/26/2018 at 12:37AM

8
#2473 - c0llision / @sh3llcode

01/26/2018 at 09:13AM

8
#2474 - Eli / @maxprkr

01/26/2018 at 11:11PM

8
#2475 - genoskill / @Genoskill

01/29/2018 at 02:18AM

8
#2476 - Yousef Mohamed / @MohamedYoyo94

01/30/2018 at 02:42PM

8
#2477 - CJ Avilla / @wizemanip

01/31/2018 at 12:26AM

8
#2478 - John Addams / @JohnAddams19

02/01/2018 at 08:18PM

8
#2479 - Veljko Dimic / @v2dimic

02/06/2018 at 08:07PM

8
#2480 - Julien Leproust / @jleproust

02/07/2018 at 06:05PM

8
#2481 - Rajeev Ranjan Jha / @rajeevcreatorjh

02/10/2018 at 05:22PM

8
#2482 - phucvin / @phucvin

02/14/2018 at 03:53PM

8
#2483 - Diego Balseiro / @diegobalseiro

02/16/2018 at 07:28PM

8
#2484 - Alvaro / @VaroClemente

02/18/2018 at 10:06PM

8
#2485 - thoughts / @bonchodiaries

02/20/2018 at 06:44PM

8
#2486 - Tris-tan / @questionblob

02/21/2018 at 09:56PM

8
#2487 - Bart Reynolds / @bartums

02/27/2018 at 03:51AM

8
#2488 - chaz / @hf7y

02/27/2018 at 07:21AM

8
#2489 - mikelplhts / @mikelplhts

02/27/2018 at 12:17PM

8
#2490 - Aviv Es / @phistakis

03/04/2018 at 08:08AM