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

4202 active golfers, 11464 entries

Leaderboard (lowest score wins):
7
#1021 - Lucas Nussbaum / @LucasNussbaum

12/14/2017 at 09:23PM

7
#1022 - Ryan Miller / @andRyanMiller

12/14/2017 at 10:52PM

7
#1023 - Elliott Bignell / @ElliottCBi

12/20/2017 at 02:28PM

7
#1024 - Sage san / @sagesancast

12/20/2017 at 02:35PM

7
#1025 - Edward / @GLineEdward

12/24/2017 at 05:38AM

7
#1026 - deepak / @utopianmonk

12/24/2017 at 02:45PM

7
#1027 - あっつぉ / @tadokorohitoshi

12/26/2017 at 02:36AM

7
#1028 - BarbaJol / @drpproteus

12/30/2017 at 01:20PM

7
#1029 - TomoHung / @TomoiHung

01/07/2018 at 06:12PM

7
#1030 - maks kamnikar / @maks_kamnikar

01/07/2018 at 10:48PM

7
#1031 - Alphonse Mariya / @alfunx

01/08/2018 at 05:47PM

7
#1032 - Wilson Chang / @ckwojai

01/11/2018 at 08:48AM

7
#1033 - ParasamGateZero / @ParasamGateZero

01/11/2018 at 09:42PM

7
#1034 - ΝΙΚΟΣ / @nikosef8ias

01/12/2018 at 02:50AM

7
#1035 - Simon Cheng / @bambooraccoon

01/13/2018 at 04:34PM

7
#1036 - Sebastian Wieland / @oktupol

01/19/2018 at 10:46AM

7
#1037 - aaasdasd / @aaasdasd4

01/21/2018 at 01:19AM

7
#1038 - TpouHuK / @TpouHuK_

01/26/2018 at 07:09PM

7
#1039 - Michael Vanier / @mvanier42

01/27/2018 at 06:36PM

7
#1040 - thadeuszlay / @thadeuszlay

01/28/2018 at 08:29PM

7
#1041 - Henrique Malheiro / @rike09

02/02/2018 at 01:01AM

7
#1042 - xyz / @menhej

02/02/2018 at 11:17AM

7
#1043 - Urbanovics Péter / @UrbanovicsP

02/05/2018 at 10:41PM

7
#1044 - Herz3h / @Herz3h

02/06/2018 at 10:11PM

7
#1045 - Ondřej Soukup / @goodQuestion_or

02/11/2018 at 10:04PM

7
#1046 - Roger Zurawicki / @zurawiki

02/21/2018 at 04:59AM

7
#1047 - z1505804@mvrht.net / @z150580

02/22/2018 at 08:14AM

7
#1048 - elsie / @elsie06177256

02/22/2018 at 11:18PM

7
#1049 - bruno / @LokoPoggi

02/23/2018 at 12:03AM

7
#1050 - Scott Smith / @Scottaino

02/25/2018 at 04:05PM