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

4068 active golfers, 11028 entries

Leaderboard (lowest score wins):
8
#2161 - Павел Игоревич / @VizierST

06/22/2016 at 12:11AM

8
#2162 - Timothy Caleb Nordlo / @tnordloh

06/23/2016 at 07:59PM

8
#2163 - Reuben Huxley / @missiontocode

06/29/2016 at 01:30AM

8
#2164 - Alex Rod. / @thealex23ro

06/30/2016 at 01:00AM

8
#2165 - Banos / @deep_spoon

06/30/2016 at 11:28AM

8
#2166 - Matthieu avec deux T / @meschatt

06/30/2016 at 01:59PM

8
#2167 - Vincent Lee / @vincentleest

06/30/2016 at 02:04PM

8
#2168 - Noah Gumbert / @Noahrama

07/01/2016 at 04:28AM

8
#2169 - Joel Rosenthal / @joelarosenthal

07/04/2016 at 12:26AM

8
#2170 - Leix b / @leix_b

07/08/2016 at 03:15PM

8
#2171 - 王运 / @640138017

07/11/2016 at 04:23AM

8
#2172 - Anton Pidkuiko / @pidkuiko

07/14/2016 at 08:45AM

8
#2173 - Nat / @ntzm_

07/15/2016 at 11:21AM

8
#2174 - Ryan van Rensburg / @rdvr001

07/16/2016 at 08:20PM

8
#2175 - j00b00 / @j00b00

07/16/2016 at 09:46PM

8
#2176 - Anatoliy C. / @1602

07/19/2016 at 07:11PM

8
#2177 - kwa / @kwa129

07/20/2016 at 02:05AM

8
#2178 - André Peric Tavares / @andre_peric

07/20/2016 at 04:08PM

8
#2179 - Bran / @brandypix

07/22/2016 at 10:40PM

8
#2180 - Ben Baker-Smith / @Bit_Synthesis

07/23/2016 at 08:48AM

8
#2181 - isaneba / @isaneba

07/25/2016 at 04:13AM

8
#2182 - Thongrapee / @kulaspa2

07/25/2016 at 05:21AM

8
#2183 - Quinn From The Pack / @fuck_saturn

07/25/2016 at 12:02PM

8
#2184 - Imre Kerr / @imre_kerr

07/25/2016 at 12:26PM

8
#2185 - Jeremiah Goyette / @JeremiahGoyette

07/30/2016 at 05:33AM

8
#2186 - Meninx / @_Meninx_

07/30/2016 at 04:08PM

8
#2187 - Sarang Khim / @sarang_khim

08/02/2016 at 11:54PM

8
#2188 - Дмитрий Петров / @dpetrov111

08/03/2016 at 05:21PM

8
#2189 - Herbert S. / @herbertshlong

08/03/2016 at 08:57PM

8
#2190 - George Angelopoulos / @g_usermod

08/04/2016 at 07:36PM