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
#2251 - Avian Y / @y_avian

01/31/2017 at 07:36AM

8
#2252 - Zhouheng Sun / @onionhoney

02/01/2017 at 05:19PM

8
#2253 - やよい / @0x841

02/05/2017 at 07:40AM

8
#2254 - Ymte Jan Broekhuizen / @ymtejan

02/05/2017 at 04:56PM

8
#2255 - Hugo do Carmo / @august_hugh

02/06/2017 at 06:39PM

8
#2256 - Moussinho / @mouss4243

02/07/2017 at 09:13AM

8
#2257 - Sushrut Shirole / @sushrutshirole

02/11/2017 at 01:10AM

8
#2258 - Lluís Mª Bosch / @LluisMa

02/12/2017 at 07:38PM

8
#2259 - Eduardo Almeida / @idurdo

02/16/2017 at 03:49PM

8
#2260 - J / @Orsabon

02/19/2017 at 03:24AM

8
#2261 - Le Bray Johan / @ShadTheUseless

02/19/2017 at 02:12PM

8
#2262 - John Marks / @jrmarks11

02/20/2017 at 11:12AM

8
#2263 - Alice Benign / @AliceBenign

02/24/2017 at 07:00PM

8
#2264 - Dan Prince / @danj_prince

02/24/2017 at 11:23PM

8
#2265 - Evgeny Morozov / @Evmorov

02/25/2017 at 09:36PM

8
#2266 - Nicholas Shirley / @nashirley

02/26/2017 at 12:40AM

8
#2267 - Brian Hall / @_bruab_

02/27/2017 at 02:23PM

8
#2268 - giovanni kastanja / @GKastanja

02/27/2017 at 10:01PM

8
#2269 - Kritixi Lithos / @kritixilithos

03/02/2017 at 07:45PM

8
#2270 - Zack Orndorff / @ZackOrndorff

03/04/2017 at 06:57PM

8
#2271 - pheech / @pheech42

03/07/2017 at 03:45PM

8
#2272 - John Wilson / @Login4anonymity

03/09/2017 at 01:56AM

8
#2273 - M Lang / @morey_lang

03/09/2017 at 03:06AM

8
#2274 - jack / @jack53053635

03/09/2017 at 09:58PM

8
#2275 - saffronsnail / @saffsnail

03/10/2017 at 03:58PM

8
#2276 - Zachary Neubert / @Mr_Saturn16347

03/10/2017 at 08:45PM

8
#2277 - Dimitar Ivanov / @dimisthoughts

03/11/2017 at 12:43AM

8
#2278 - xwle / @xwle

03/11/2017 at 01:44PM

8
#2279 - Colin Jacobs / @coljac

03/14/2017 at 10:49AM

8
#2280 - Mitchell / @Spitchell

03/14/2017 at 06:56PM