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
#2371 - John Marks / @jrmarks11

02/20/2017 at 11:12AM

8
#2372 - Alice Benign / @AliceBenign

02/24/2017 at 07:00PM

8
#2373 - Dan Prince / @danj_prince

02/24/2017 at 11:23PM

8
#2374 - Evgeny Morozov / @Evmorov

02/25/2017 at 09:36PM

8
#2375 - Nicholas Shirley / @nashirley

02/26/2017 at 12:40AM

8
#2376 - Brian Hall / @_bruab_

02/27/2017 at 02:23PM

8
#2377 - giovanni kastanja / @GKastanja

02/27/2017 at 10:01PM

8
#2378 - Kritixi Lithos / @kritixilithos

03/02/2017 at 07:45PM

8
#2379 - Zack Orndorff / @ZackOrndorff

03/04/2017 at 06:57PM

8
#2380 - pheech / @pheech42

03/07/2017 at 03:45PM

8
#2381 - John Wilson / @Login4anonymity

03/09/2017 at 01:56AM

8
#2382 - M Lang / @morey_lang

03/09/2017 at 03:06AM

8
#2383 - jack / @jack53053635

03/09/2017 at 09:58PM

8
#2384 - saffronsnail / @saffsnail

03/10/2017 at 03:58PM

8
#2385 - Zachary Neubert / @Mr_Saturn16347

03/10/2017 at 08:45PM

8
#2386 - Dimitar Ivanov / @dimisthoughts

03/11/2017 at 12:43AM

8
#2387 - xwle / @xwle

03/11/2017 at 01:44PM

8
#2388 - Colin Jacobs / @coljac

03/14/2017 at 10:49AM

8
#2389 - Mitchell / @Spitchell

03/14/2017 at 06:56PM

8
#2390 - Ryan Jarrett / @texmexas

03/15/2017 at 03:49PM

8
#2391 - Andreas Anderbach / @anderbacha

03/19/2017 at 04:56PM

8
#2392 - Reinaldo Astudillo / @astudillor

03/22/2017 at 12:34PM

8
#2393 - Mark Brody / @_markbrody

03/23/2017 at 04:53AM

8
#2394 - caplod / @caplod

03/24/2017 at 04:05PM

8
#2395 - BlackCap / @BlackCapCoder

03/24/2017 at 05:11PM

8
#2396 - Travis Bybee / @bybeet

03/24/2017 at 09:20PM

8
#2397 - ʎɐɹ / @staticjak

03/24/2017 at 09:22PM

8
#2398 - VpzomTrrfrt / @vpzomtrrfrt

03/28/2017 at 01:19AM

8
#2399 - Nachiket Bhave / @nachiketvb

03/28/2017 at 09:06AM

8
#2400 - Daniel / @Daniel00288663

03/29/2017 at 01:28PM