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
#2191 - litze / @litze_

11/07/2016 at 09:12AM

8
#2192 - Raj / @rjindel

11/07/2016 at 10:40PM

8
#2193 - Aurélien Vallée / @aurelienvallee

11/11/2016 at 05:53AM

8
#2194 - John Newbery / @jonnynewbs

11/13/2016 at 01:47AM

8
#2195 - Anas Salah Eddin / @asalaheddin

11/15/2016 at 07:56AM

8
#2196 - daHueby / @daHueby

11/17/2016 at 09:18AM

8
#2197 - fx32gamer / @fx32gamer

11/18/2016 at 06:45PM

8
#2198 - thialfihar / @thialfihar

11/20/2016 at 12:02PM

8
#2199 - Robin / @VdeleuzeRobin

11/22/2016 at 02:05PM

8
#2200 - Sergio / @voyeg3r

11/23/2016 at 06:58PM

8
#2201 - Danny / @dannywood1976

11/24/2016 at 04:13PM

8
#2202 - Sergey Alekhnovich / @salekhn

11/25/2016 at 09:55PM

8
#2203 - dvorak / @dvorak0

11/26/2016 at 11:49AM

8
#2204 - Apox / @apox159

11/26/2016 at 07:24PM

8
#2205 - Bill Booth / @ohiopyle

11/27/2016 at 09:15AM

8
#2206 - alkozu / @alkozu

11/29/2016 at 07:35AM

8
#2207 - sat0b / @sat0b

12/02/2016 at 06:53AM

8
#2208 - えるざっぷ / @_elzup_

12/03/2016 at 02:22AM

8
#2209 - Vojtěch Vobr / @vvobr

12/03/2016 at 05:59PM

8
#2210 - Никита Канунников / @NIikitaK

12/04/2016 at 12:03PM

8
#2211 - Markus Flatscher / @mflat

12/05/2016 at 03:36AM

8
#2212 - Liam S Ismail / @AC01Y

12/06/2016 at 04:36PM

8
#2213 - FakeJake / @TehRealFakeJake

12/09/2016 at 09:26PM

8
#2214 - Mark Badros / @mbadros

12/10/2016 at 01:31AM

8
#2215 - VivienVandaele / @VandaeleVivien

12/10/2016 at 09:08PM

8
#2216 - jessepye / @jessepye

12/13/2016 at 06:25AM

8
#2217 - Nome / @sensorario

12/13/2016 at 07:38AM

8
#2218 - Carbage Gollector / @CarbageG

12/14/2016 at 02:28AM

8
#2219 - Oliver Newman / @orn688

12/14/2016 at 08:20PM

8
#2220 - Roey Berman / @ManBergundyPig

12/15/2016 at 08:43PM