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

4114 active golfers, 11141 entries

Leaderboard (lowest score wins):
10
#3601 - Julio C. Villasante / @jvillasante

03/02/2015 at 05:21PM

10
#3602 - Barchie.si / @barchie_si

03/02/2015 at 10:47PM

10
#3603 - thrawny / @thrawn_

03/10/2015 at 03:49PM

10
#3604 - Samuel Simões / @samuelsimoes

03/11/2015 at 10:18PM

10
#3605 - Alex Plate / @AlexPl292

03/23/2015 at 07:14PM

10
#3606 - Wei Liu / @iliuw

03/23/2015 at 09:17PM

10
#3607 - LeBarbu / @LeBarbu_

03/24/2015 at 03:54PM

10
#3608 - March / @M2March

03/26/2015 at 06:27PM

10
#3609 - Jacob Degeling / @JacobDegeling

03/28/2015 at 09:18AM

10
#3610 - Jeff Parent / @jeffparent

04/23/2015 at 09:53PM

10
#3611 - chvzvhn / @chvzvhn

04/25/2015 at 11:01PM

10
#3612 - Marc-Antoine Sauvé / @masauve_ac

04/26/2015 at 10:46PM

10
#3613 - Seph Newman / @SephNewman

05/10/2015 at 08:26AM

10
#3614 - vimgolf11 / @vimgolf11

05/13/2015 at 09:55AM

10
#3615 - Henrik Lindgren / @HeLi8one

05/17/2015 at 03:34PM

10
#3616 - andrea cedraro / @vheon

05/21/2015 at 07:22PM

10
#3617 - Rui Duraes / @rui_duraes

05/23/2015 at 04:05PM

10
#3618 - ɹǝsnɐɥsıʇnɹ uoɾ / @JonRutis

05/27/2015 at 06:26PM

10
#3619 - クロード / @Crawd

05/28/2015 at 04:08AM

10
#3620 - Wei Fu / @fhfuwei

05/28/2015 at 06:38AM

10
#3621 - eric roberts / @baileyeock

05/29/2015 at 01:23AM

10
#3622 - Wlad / @wladston

06/05/2015 at 03:21PM

10
#3623 - 自称相談役 / @Zisyou_Adviser

06/06/2015 at 10:20PM

10
#3624 - Nick Tikhonov / @nick_tikhonov

06/08/2015 at 10:49PM

10
#3625 - Douglas Detoni / @douglas_detoni

06/19/2015 at 04:55PM

10
#3626 - Mhd Ali / @MhdAli_

06/22/2015 at 02:22PM

10
#3627 - Guillaume / @arteymix

06/24/2015 at 04:35AM

10
#3628 - Ted Reed / @treed

06/24/2015 at 06:35AM

10
#3629 - Jon Featherstone / @feathj

06/25/2015 at 02:39AM

10
#3630 - Maxim Gladkih / @gladkih_m

07/02/2015 at 09:47AM