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

4218 active golfers, 11509 entries

Leaderboard (lowest score wins):
8
#2311 - Danny / @dannywood1976

11/24/2016 at 04:13PM

8
#2312 - Sergey Alekhnovich / @salekhn

11/25/2016 at 09:55PM

8
#2313 - dvorak / @dvorak0

11/26/2016 at 11:49AM

8
#2314 - Apox / @apox159

11/26/2016 at 07:24PM

8
#2315 - Bill Booth / @ohiopyle

11/27/2016 at 09:15AM

8
#2316 - alkozu / @alkozu

11/29/2016 at 07:35AM

8
#2317 - sat0b / @sat0b

12/02/2016 at 06:53AM

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

12/03/2016 at 02:22AM

8
#2319 - Vojtěch Vobr / @vvobr

12/03/2016 at 05:59PM

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

12/04/2016 at 12:03PM

8
#2321 - Markus Flatscher / @mflat

12/05/2016 at 03:36AM

8
#2322 - Liam S Ismail / @AC01Y

12/06/2016 at 04:36PM

8
#2323 - FakeJake / @TehRealFakeJake

12/09/2016 at 09:26PM

8
#2324 - Mark Badros / @mbadros

12/10/2016 at 01:31AM

8
#2325 - VivienVandaele / @VandaeleVivien

12/10/2016 at 09:08PM

8
#2326 - jessepye / @jessepye

12/13/2016 at 06:25AM

8
#2327 - Nome / @sensorario

12/13/2016 at 07:38AM

8
#2328 - Carbage Gollector / @CarbageG

12/14/2016 at 02:28AM

8
#2329 - Oliver Newman / @orn688

12/14/2016 at 08:20PM

8
#2330 - Roey Berman / @ManBergundyPig

12/15/2016 at 08:43PM

8
#2331 - Michał Dytko / @DytkoM

12/16/2016 at 09:19AM

8
#2332 - janusz janusz / @januszjanusz20

12/16/2016 at 08:02PM

8
#2333 - Pierre Maoui / @p_maoui

12/17/2016 at 05:37PM

8
#2334 - chocolate / @chocola81394123

12/18/2016 at 08:58AM

8
#2335 - Lewis Sparlin / @lewis_sparlin

12/20/2016 at 07:40PM

8
#2336 - Jon McClennon / @mcclennon19

12/21/2016 at 09:54AM

8
#2337 - Marcel Akkerman / @MarcelAkkerman

12/21/2016 at 10:43AM

8
#2338 - Jan Eisenhauer / @EisenhauerJan

12/22/2016 at 01:48AM

8
#2339 - Patrick Ball @pball@mastodon.social / @vm_wylbur

12/23/2016 at 06:01AM

8
#2340 - Anakin / @xdxter

12/23/2016 at 06:05AM