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):
9
#3241 - Kévin R / @shaiton_

12/11/2014 at 10:50AM

9
#3242 - Sandeep Kumar Gupta / @skgBanga

12/15/2014 at 04:53AM

9
#3243 - Yuval Goncz / @YGoncho

12/18/2014 at 04:16PM

9
#3244 - r. / @rmarvie

12/25/2014 at 08:30PM

9
#3245 - daltonridenhour / @daltonridenhour

12/27/2014 at 10:46PM

9
#3246 - Tamás Torba / @torbatamas

12/30/2014 at 01:53PM

9
#3247 - Fontana Lorenzo / @fntlnz

01/03/2015 at 01:15PM

9
#3248 - makohoek / @MattijsKorp

01/07/2015 at 12:21PM

9
#3249 - Charles H. Leggett / @cleggett

01/08/2015 at 03:42PM

9
#3250 - Ulysse Carion / @ucarion

01/13/2015 at 03:20AM

9
#3251 - Charles Wu / @Congeec

01/13/2015 at 01:32PM

9
#3252 - guguojie / @kelvinhust

01/14/2015 at 05:43AM

9
#3253 - Raynard, Jordan / @raynard_jordan

01/14/2015 at 01:11PM

9
#3254 - Frederik Schubert / @fschubert

01/15/2015 at 06:24PM

9
#3255 - Vaibhav Bhembre / @neurodrone

01/18/2015 at 01:24PM

9
#3256 - Raingomm / @raingomm

01/19/2015 at 07:11AM

9
#3257 - Jon Kuperman / @jkup

01/19/2015 at 09:02AM

9
#3258 - Arno ℇrpenbeck / @javacgn

01/19/2015 at 09:41AM

9
#3259 - Ry4an Brase / @Ry4an

01/20/2015 at 05:15AM

9
#3260 - Константин / @xni

01/20/2015 at 09:31AM

9
#3261 - Ben Blaxill / @BenBlaxill

01/23/2015 at 03:29AM

9
#3262 - Will Nicht / @kein_name_fuer

01/26/2015 at 10:25PM

9
#3263 - Innokenty Mikhailov / @gregolsent

01/28/2015 at 09:43AM

9
#3264 - morphocapics / @morphocapics

02/02/2015 at 01:43PM

9
#3265 - Алина Михалькова / @smertskosoi1

02/04/2015 at 11:59AM

9
#3266 - Ted Studley / @TedStudley

02/06/2015 at 03:22AM

9
#3267 - Martin Liberg / @marreman

02/08/2015 at 04:56PM

9
#3268 - ペロリスト / @07151129

02/09/2015 at 01:53PM

9
#3269 - Sri Kadimisetty / @sri

02/10/2015 at 11:40PM

9
#3270 - かっかる / @86ktcal

02/12/2015 at 06:17AM