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

4213 active golfers, 11494 entries

Leaderboard (lowest score wins):
10
#3781 - NG / @dueyfinster

02/07/2017 at 04:45PM

10
#3782 - FJYsmall / @FJYsmall

02/28/2017 at 05:01AM

10
#3783 - Abhishek Amberkar / @greenmang0

03/26/2017 at 12:55PM

10
#3784 - Daniel Kosiński / @itsdkns

04/23/2017 at 06:02PM

10
#3785 - qin shulei / @qinshulei

05/05/2017 at 04:14AM

10
#3786 - Ryan Coopersmith / @RyanCoopersmit1

06/03/2017 at 04:09PM

10
#3787 - Harsh Kumar / @datsleepyguy

06/07/2017 at 06:23PM

10
#3788 - I akira / @niyarium

06/22/2017 at 12:43PM

10
#3789 - Zack Bridges / @z_bridges

06/29/2017 at 08:27PM

10
#3790 - Stop and think / @ms_uncountable

07/05/2017 at 11:23PM

10
#3791 - Alexis Andre / @MacTuitui

08/01/2017 at 01:44AM

10
#3792 - Barespamtak / @barespamtak

09/06/2017 at 08:42AM

10
#3793 - Mr. F / @Flur1n

10/05/2017 at 06:57PM

10
#3794 - rui / @dolare12

10/08/2017 at 09:08PM

10
#3795 - sehe / @sehetw

10/10/2017 at 01:17PM

10
#3796 - Luis Pigueiras / @LPigueiras

10/27/2017 at 09:55AM

10
#3797 - BPD (blue checkmark) / @brian_doyle

11/11/2017 at 03:00PM

10
#3798 - Michael Yeh / @hinet60613

01/18/2018 at 11:57AM

10
#3799 - eddie leon / @_eddie_leon

01/24/2018 at 10:02PM

10
#3800 - 陈振宇 / @1243065115

01/31/2018 at 12:45PM

10
#3801 - rvnjsphdmn / @rvnjsphdmn

02/05/2018 at 03:44PM

10
#3802 - 王有铭 / @wangyouming1209

02/26/2018 at 02:29PM

10
#3803 - Troy Spruit / @densefog

02/26/2018 at 03:42PM

10
#3804 - Max Horn / @maexlich

03/02/2018 at 10:48PM

10
#3805 - Andrew Thal / @athal7

03/23/2018 at 02:00AM

10
#3806 - matthew brett / @matthewbrett

03/24/2018 at 10:14AM

10
#3807 - golfal / @golfal2

05/13/2018 at 02:23AM

10
#3808 - Mayank Suman / @mayank_suman

05/30/2018 at 07:33AM

10
#3809 - Colin Hart / @ColinTheRobot

06/06/2018 at 05:59PM

10
#3810 - Kris Ezra / @kris_ezra

06/12/2018 at 06:35PM