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

4215 active golfers, 11497 entries

Leaderboard (lowest score wins):
9
#3361 - Ganiks Liu / @GaniksLiu

07/25/2015 at 08:38AM

9
#3362 - CoCo Loco / @lc2817

07/30/2015 at 06:16AM

9
#3363 - Leo Mehr / @LeoMehr

07/30/2015 at 06:02PM

9
#3364 - James Fnord / @JamesFnord

07/31/2015 at 08:57PM

9
#3365 - Roland Crosby / @roooooland

08/03/2015 at 08:03PM

9
#3366 - Jatinderjit Singh / @jatinderjit

08/18/2015 at 10:28PM

9
#3367 - Thanh ND / @thanhnd84

08/23/2015 at 09:16AM

9
#3368 - Ryan McNulty / @catalyst294

08/26/2015 at 03:44AM

9
#3369 - Alexey Morozov / @alexeysmorozov

08/27/2015 at 02:52PM

9
#3370 - Léo S / @LeoSauvaget

08/28/2015 at 06:55PM

9
#3371 - Markus / @I__Markus__I

08/30/2015 at 08:19PM

9
#3372 - A / @Tower_1980

09/03/2015 at 12:22PM

9
#3373 - Slobodan Mišković / @slobomiskovic

09/08/2015 at 03:43AM

9
#3374 - Jorin / @jorinvo

09/09/2015 at 07:24PM

9
#3375 - 456345234123 / @456345234123

09/10/2015 at 07:06PM

9
#3376 - Andrew Reece / @azmreece

09/11/2015 at 01:06PM

9
#3377 - jek lueps / @MoistFlex

09/14/2015 at 11:02AM

9
#3378 - Radoslav Ivanov / @rivanov1

09/15/2015 at 12:26AM

9
#3379 - Slavisa Djukic / @ssdjuka

09/18/2015 at 12:46AM

9
#3380 - Niko / @nikozc

09/22/2015 at 05:03AM

9
#3381 - Igor / @trollmode

09/22/2015 at 06:58PM

9
#3382 - Hello World / @CrisTsanNtua

09/27/2015 at 12:59PM

9
#3383 - Etienne / @kirozen

10/02/2015 at 09:19AM

9
#3384 - Marco / @hoechst

10/07/2015 at 10:42PM

9
#3385 - Marius Lucian Pop / @mlpinit

10/08/2015 at 09:38AM

9
#3386 - Arbi Tamrazian / @ArbiTamrazian

10/10/2015 at 11:17PM

9
#3387 - Aryeh Kuller / @akuller23

10/14/2015 at 03:07PM

9
#3388 - jaunita fetters / @JFlessasoljo

10/17/2015 at 11:46AM

9
#3389 - Anshu Avinash / @anshu_avinash

10/17/2015 at 08:35PM

9
#3390 - Gerald Tilma / @GeraldTilma

10/18/2015 at 01:12AM