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 by @alexbartol:

Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @udioica

4218 active golfers, 11509 entries

Solutions by @alexbartol:
8
#2982 - Alex Bartol / @alexbartol

01/09/2020 at 07:33PM

9
#>3312 - Alex Bartol / @alexbartol

05/05/2015 at 06:32PM

9
#>3312 - Alex Bartol / @alexbartol

05/05/2015 at 06:33PM

10
#>3700 - Alex Bartol / @alexbartol

05/05/2015 at 06:31PM

10
#>3868 - Alex Bartol / @alexbartol

01/09/2020 at 07:33PM

12
#>4013 - Alex Bartol / @alexbartol

05/05/2015 at 06:30PM

12
#>4013 - Alex Bartol / @alexbartol

05/05/2015 at 06:30PM