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):
12
#3931 - Charleston / @cv9828

11/28/2015 at 01:59AM

12
#3932 - Lucas McDaniel / @Ldmcdaniel109

01/21/2016 at 03:43PM

12
#3933 - full name / @caeken1

02/15/2016 at 10:55PM

12
#3934 - yung turtle ma / @cliquebeight

02/29/2016 at 12:27AM

12
#3935 - João Sampaio / @jarsmp

03/10/2016 at 12:21AM

12
#3936 - tristan_ph / @tristan_ph

05/11/2016 at 09:18AM

12
#3937 - Grant Sheehan / @grizzle_grant

05/12/2016 at 05:12PM

12
#3938 - Peter Trotman / @pgtrots

06/05/2016 at 08:32PM

12
#3939 - Sebastian Pfluegelm / @sebastian_pflgl

06/07/2016 at 11:33AM

12
#3940 - Jonathan / @jmcphers

08/17/2016 at 11:45PM

12
#3941 - Joshua Tonga / @imjoshuatonga

09/18/2016 at 06:35PM

12
#3942 - Wolf / @YesJustWolf

09/25/2016 at 08:00PM

12
#3943 - Ninja Gun / @ninjagun

10/06/2016 at 10:21PM

12
#3944 - Kyoungchin Seo(서경진) / @jiniseo

10/19/2016 at 02:43AM

12
#3945 - Amadou CISSE / @amsayk

11/02/2016 at 06:51PM

12
#3946 - kayamak / @k_kayama

02/24/2017 at 04:34PM

12
#3947 - Dreach Achat Revente / @TheDreach_AR

03/25/2017 at 12:18PM

12
#3948 - James Sral / @bcwarlock18

09/05/2017 at 07:52PM

12
#3949 - z0c / @zerocabal

06/02/2018 at 10:24AM

12
#3950 - David Butler / @dbuts11

06/08/2018 at 02:37AM

12
#3951 - あああ / @fox22c

06/11/2018 at 05:24AM

12
#3952 - touilleMan / @touilleMan

07/29/2018 at 11:26PM

12
#3953 - Jonny Wilson / @thejondom

12/21/2018 at 09:40PM

12
#3954 - Sean Connor / @seaconr

03/06/2019 at 08:19AM

12
#3955 - cyrt / @cyrt4

03/12/2019 at 11:01AM

12
#3956 - linus heinz / @heinz_linus

04/19/2019 at 09:08PM

12
#3957 - kugaden / @kugaden1

07/28/2019 at 06:50AM

12
#3958 - Haakon Borch / @BorchHaakon

08/13/2019 at 10:40AM

12
#3959 - Le Tu Binh / @LeTuBinh1

08/22/2019 at 06:38AM

12
#3960 - Asno Gordo / @dougghernandez

08/26/2019 at 03:54AM