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

3745 active golfers, 10074 entries

Leaderboard (lowest score wins):
7
#991 - VirginiaSteaks / @VirginiaSteaks

10/15/2017 at 05:51PM

7
#992 - しぇぱっち / @shepabashi

10/21/2017 at 01:24PM

7
#993 - Jan Chwiejczak / @iamjanhak

10/22/2017 at 02:15PM

7
#994 - Michail Pishchagin / @mblsha

10/22/2017 at 02:59PM

7
#995 - Anthony Shivers / @_AnthonyShivers

10/24/2017 at 02:31PM

7
#996 - Florian Kluck / @KluckF

10/24/2017 at 09:37PM

7
#997 - mkl / @Hnr1zklc

10/26/2017 at 09:39AM

7
#998 - Omar M. Ali / @OmarMMAli

10/28/2017 at 10:14AM

7
#999 - MathijsHoogland / @MathijsHoogland

11/01/2017 at 03:42PM

7
#1000 - MuadDev / @MuadDev

11/02/2017 at 03:42PM

7
#1001 - Markus Ankenbrand / @IIMOG

11/05/2017 at 06:29AM

7
#1002 - Piotr Dołowy / @owy_do

11/06/2017 at 06:07PM

7
#1003 - Chris Kirkland / @numbahs

11/07/2017 at 03:59AM

7
#1004 - Turkey Man / @lvturkeyman

11/07/2017 at 04:24PM

7
#1005 - Adam Silkey / @Dooflegna

11/07/2017 at 07:49PM

7
#1006 - Kim Hwa Joong / @hanmwoi

11/10/2017 at 04:50PM

7
#1007 - Juuso Valkeejärvi / @jussovalk

11/10/2017 at 08:07PM

7
#1008 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 04:26PM

7
#1009 - Wolly Woodpecker / @WollyWoodpecker

11/13/2017 at 07:47PM

7
#1010 - darkdaan / @ddubbeldam

11/14/2017 at 04:56PM

7
#1011 - oops / @oopserror404

11/15/2017 at 03:01PM

7
#1012 - manos koustelakis / @KoutsManos

11/18/2017 at 06:56PM

7
#1013 - Chasetopher / @chasetopherlee

11/25/2017 at 11:50PM

7
#1014 - Wayne / @lilwayne15561

11/28/2017 at 07:15PM

7
#1015 - Andrei Gasparovici / @agasparovici

12/02/2017 at 07:54AM

7
#1016 - David / @Revan4Vendetta

12/04/2017 at 11:26AM

7
#1017 - Pereant osores / @viniciusxp

12/05/2017 at 08:35AM

7
#1018 - flykule / @flykule

12/06/2017 at 09:44AM

7
#1019 - Thomas Barusseau / @ThomasBarusseau

12/06/2017 at 03:45PM

7
#1020 - Rodrigo Munoz / @pixelfuture

12/13/2017 at 06:02AM