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):
10
#3691 - Oliver Christensen / @OliverEHC

09/27/2016 at 08:48PM

10
#3692 - Cameron Dershem / @jerknextdoor

10/04/2016 at 11:47PM

10
#3693 - Joe Heth / @jheth

10/04/2016 at 11:55PM

10
#3694 - TweetDreams / @TweetMusicians

10/08/2016 at 07:59AM

10
#3695 - Enrico Roncaglia / @Ronca_cp

10/17/2016 at 03:30PM

10
#3696 - Luke / @toy_lang_smell

01/01/2017 at 05:45AM

10
#3697 - 馬的愛人 / @felipeanchieta_

01/25/2017 at 04:59AM

10
#3698 - NG / @dueyfinster

02/07/2017 at 04:45PM

10
#3699 - FJYsmall / @FJYsmall

02/28/2017 at 05:01AM

10
#3700 - Abhishek Amberkar / @greenmang0

03/26/2017 at 12:55PM

10
#3701 - Daniel Kosiński / @itsdkns

04/23/2017 at 06:02PM

10
#3702 - qin shulei / @qinshulei

05/05/2017 at 04:14AM

10
#3703 - Ryan Coopersmith / @RyanCoopersmit1

06/03/2017 at 04:09PM

10
#3704 - Harsh Kumar / @datsleepyguy

06/07/2017 at 06:23PM

10
#3705 - I akira / @niyarium

06/22/2017 at 12:43PM

10
#3706 - Zack Bridges / @z_bridges

06/29/2017 at 08:27PM

10
#3707 - Stop and think / @ms_uncountable

07/05/2017 at 11:23PM

10
#3708 - Alexis Andre / @MacTuitui

08/01/2017 at 01:44AM

10
#3709 - Barespamtak / @barespamtak

09/06/2017 at 08:42AM

10
#3710 - Mr. F / @Flur1n

10/05/2017 at 06:57PM

10
#3711 - rui / @dolare12

10/08/2017 at 09:08PM

10
#3712 - sehe / @sehetw

10/10/2017 at 01:17PM

10
#3713 - Luis Pigueiras / @LPigueiras

10/27/2017 at 09:55AM

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

11/11/2017 at 03:00PM

10
#3715 - Michael Yeh / @hinet60613

01/18/2018 at 11:57AM

10
#3716 - eddie leon / @_eddie_leon

01/24/2018 at 10:02PM

10
#3717 - 陈振宇 / @1243065115

01/31/2018 at 12:45PM

10
#3718 - rvnjsphdmn / @rvnjsphdmn

02/05/2018 at 03:44PM

10
#3719 - 王有铭 / @wangyouming1209

02/26/2018 at 02:29PM

10
#3720 - Troy Spruit / @densefog

02/26/2018 at 03:42PM