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

3357 active golfers, 8983 entries

Leaderboard (lowest score wins):
7
#511 - Alexei Smychagin / @smalex69

12/02/2015 at 09:48PM

7
#512 - jabashque / @jabashque

12/05/2015 at 09:03AM

7
#513 - Tek Paul Huynh / @tekhuynh

12/05/2015 at 11:28AM

7
#514 - Gordon / @gordonczedik

12/05/2015 at 03:19PM

7
#515 - Patrick Cichon / @the_nQL

12/07/2015 at 05:55PM

7
#516 - swordgard / @swordgardctf

12/07/2015 at 08:16PM

7
#517 - Martin Lehmann / @Theneva

12/08/2015 at 10:43PM

7
#518 - Julian Mendoza / @JmenD1

12/11/2015 at 09:34PM

7
#519 - John Xia / @xiaman

12/15/2015 at 04:58PM

7
#520 - Jan Path / @jan_path

12/17/2015 at 05:59PM

7
#521 - Matthew Evans / @funroll_loops

12/18/2015 at 06:28PM

7
#522 - Alexander Botticelli / @BotticelliAlex

12/19/2015 at 10:52AM

7
#523 - sellerie schnitzel / @sellerieschnitz

12/20/2015 at 07:00AM

7
#524 - Alexey Belkov / @larksvroom

12/20/2015 at 08:12AM

7
#525 - Andrii Maksai / @AMaksai

12/21/2015 at 10:50PM

7
#526 - Aris Kotzias / @ArisKotzias

12/22/2015 at 12:00PM

7
#527 - Fabi / @zehdeh90

12/22/2015 at 10:31PM

7
#528 - ⏠ᛚᵩ⅜⛭␂⇰✥⛨⦿⨭ᣀ⑲⇻ / @gardensimulator

12/23/2015 at 01:30AM

7
#529 - Sam Stites / @SamStites

12/25/2015 at 05:38AM

7
#530 - aanton / @aanton

12/25/2015 at 09:36PM

7
#531 - Egg / @hammingdistanc1

12/26/2015 at 01:17AM

7
#532 - Adv_Zxy / @adv_zxy

12/26/2015 at 12:54PM

7
#533 - Marko / @suchtie

12/27/2015 at 07:40PM

7
#534 - Brian C Sparks / @briancsparks

12/28/2015 at 01:53PM

7
#535 - Krzysztof Słonka / @KrzysztofSlonka

12/31/2015 at 10:38AM

7
#536 - Jan / @GrzegorowskiJan

01/02/2016 at 12:14AM

7
#537 - Saki Gw / @Sakigw

01/03/2016 at 04:40PM

7
#538 - Kyle Holzinger / @kyleholzinger

01/03/2016 at 07:32PM

7
#539 - Alexander Ryzhikov / @Coobaha

01/05/2016 at 06:37PM

7
#540 - Thomas Williams / @neopsalmist

01/05/2016 at 10:31PM