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

4232 active golfers, 11546 entries

Leaderboard (lowest score wins):
12
#4051 - Ninja Gun / @ninjagun

10/06/2016 at 10:21PM

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

10/19/2016 at 02:43AM

12
#4053 - Amadou CISSE / @amsayk

11/02/2016 at 06:51PM

12
#4054 - kayamak / @k_kayama

02/24/2017 at 04:34PM

12
#4055 - Dreach Achat Revente / @TheDreach_AR

03/25/2017 at 12:18PM

12
#4056 - James Sral / @bcwarlock18

09/05/2017 at 07:52PM

12
#4057 - z0c / @zerocabal

06/02/2018 at 10:24AM

12
#4058 - David Butler / @dbuts11

06/08/2018 at 02:37AM

12
#4059 - あああ / @fox22c

06/11/2018 at 05:24AM

12
#4060 - touilleMan / @touilleMan

07/29/2018 at 11:26PM

12
#4061 - Jonny Wilson / @thejondom

12/21/2018 at 09:40PM

12
#4062 - Sean Connor / @seaconr

03/06/2019 at 08:19AM

12
#4063 - cyrt / @cyrt4

03/12/2019 at 11:01AM

12
#4064 - linus heinz / @heinz_linus

04/19/2019 at 09:08PM

12
#4065 - kugaden / @kugaden1

07/28/2019 at 06:50AM

12
#4066 - Haakon Borch / @BorchHaakon

08/13/2019 at 10:40AM

12
#4067 - Le Tu Binh / @LeTuBinh1

08/22/2019 at 06:38AM

12
#4068 - Asno Gordo / @dougghernandez

08/26/2019 at 03:54AM

12
#4069 - huynhminhchu / @huynhminhchu

09/23/2019 at 02:38AM

12
#4070 - Константин / @pillar_vandyke

10/17/2019 at 08:58PM

12
#4071 - roemermeier / @roemermeier

10/18/2019 at 04:20PM

12
#4072 - tobineko@ iOS x Flitterなエンジニア / @tabinekotamama

11/28/2019 at 08:28AM

12
#4073 - JP / @shinvalor

12/29/2019 at 09:00PM

12
#4074 - samet ぷ / @jssamet

02/01/2020 at 05:46PM

12
#4075 - Zhang Lizhong / @ZhangLizhong

03/01/2020 at 10:18PM

12
#4076 - David Cherednik / @david_cherednik

05/22/2020 at 07:00PM

12
#4077 - noxxi / @noooxxi

08/20/2020 at 03:16PM

12
#4078 - Bro / @SpeorgNot

09/17/2020 at 02:20PM

12
#4079 - moh ayaya / @AyayaMoh

11/02/2020 at 03:20PM

12
#4080 - brunolavazza / @brunolavazza1

01/24/2021 at 02:01PM