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
#3391 - Niko / @nikozc

09/22/2015 at 05:03AM

9
#3392 - Igor / @trollmode

09/22/2015 at 06:58PM

9
#3393 - Hello World / @CrisTsanNtua

09/27/2015 at 12:59PM

9
#3394 - Etienne / @kirozen

10/02/2015 at 09:19AM

9
#3395 - Marco / @hoechst

10/07/2015 at 10:42PM

9
#3396 - Marius Lucian Pop / @mlpinit

10/08/2015 at 09:38AM

9
#3397 - Arbi Tamrazian / @ArbiTamrazian

10/10/2015 at 11:17PM

9
#3398 - Aryeh Kuller / @akuller23

10/14/2015 at 03:07PM

9
#3399 - jaunita fetters / @JFlessasoljo

10/17/2015 at 11:46AM

9
#3400 - Anshu Avinash / @anshu_avinash

10/17/2015 at 08:35PM

9
#3401 - Gerald Tilma / @GeraldTilma

10/18/2015 at 01:12AM

9
#3402 - Otto / @OttoRottier

10/19/2015 at 07:42PM

9
#3403 - Cameron Fitzgerald / @camfitz

10/21/2015 at 12:40AM

9
#3404 - Arseny Zarechnev / @evindor

10/22/2015 at 03:49PM

9
#3405 - Conor Ryan / @conorjryan

10/28/2015 at 07:37AM

9
#3406 - Rene Tianco / @murlockslol

10/29/2015 at 05:03AM

9
#3407 - Mike Mepham / @meppum

10/30/2015 at 04:15AM

9
#3408 - Rafeh Qazi / @RafehQ

11/03/2015 at 11:09PM

9
#3409 - John Clara / @johnanthclara

11/12/2015 at 07:06AM

9
#3410 - Stanislav Nikolov / @stanislavLTB

11/17/2015 at 09:04AM

9
#3411 - C / @c_getTweet

11/18/2015 at 05:52AM

9
#3412 - Nicolas Nistal / @niconistal

11/19/2015 at 12:08AM

9
#3413 - Daniil Nguen / @DNguen

11/24/2015 at 03:31PM

9
#3414 - Arūnas Smaliukas / @ArnasSmaliukas1

11/28/2015 at 07:31PM

9
#3415 - retro / @tryphopp

12/09/2015 at 10:48AM

9
#3416 - Thomas Lovén / @thomasloven

12/09/2015 at 03:22PM

9
#3417 - brett / @brettyukich

12/10/2015 at 09:35PM

9
#3418 - Knarf / @Knarf93

12/10/2015 at 09:51PM

9
#3419 - Mikael Axelsson / @Mikael_Axelsson

12/23/2015 at 01:23PM

9
#3420 - andrei / @CebotariAndrei

12/27/2015 at 10:23AM