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

3825 active golfers, 10310 entries

Leaderboard (lowest score wins):
8
#1411 - Michi Loro / @michiloro

12/12/2014 at 01:45PM

8
#1412 - Christoph Paulik / @cpaulik

12/12/2014 at 10:46PM

8
#1413 - Steve Alison / @Steve_Alison

12/12/2014 at 11:51PM

8
#1414 - Martin Habovštiak / @kixunil

12/13/2014 at 11:23PM

8
#1415 - Luca Giovagnoli / @ryuzaki250

12/14/2014 at 09:05AM

8
#1416 - Rasmus P / @rasmup

12/14/2014 at 01:35PM

8
#1417 - Éric Calvayrac / @xarmux2

12/14/2014 at 04:50PM

8
#1418 - Erim Secla / @Alcesmire

12/15/2014 at 03:23AM

8
#1419 - Francescu Santoni / @Francescu

12/15/2014 at 12:31PM

8
#1420 - Virassamy Yohan / @Yoh_Ahn

12/15/2014 at 03:27PM

8
#1421 - 1upまむ9 / @mamunine

12/16/2014 at 12:30PM

8
#1422 - Kevin Dahlhausen / @powertwenty

12/16/2014 at 09:44PM

8
#1423 - Jeremy Gold / @JeremyGold3

12/17/2014 at 03:46AM

8
#1424 - Jesse Emond / @JesseEmond

12/17/2014 at 05:25AM

8
#1425 - thinkjp / @thinkjpinfo

12/17/2014 at 09:04PM

8
#1426 - Andrew Leung / @aleungpivotal

12/17/2014 at 10:02PM

8
#1427 - José Maurinho / @Jose_Maurinho

12/18/2014 at 08:52PM

8
#1428 - d1uckym d1uckym / @d1uckym

12/18/2014 at 09:43PM

8
#1429 - Adam Redfern / @AdmRedfern

12/19/2014 at 04:24PM

8
#1430 - Lieven Keersmaekers / @LievenKeersmaek

12/19/2014 at 05:03PM

8
#1431 - Wayne Franklin / @waf1waf

12/20/2014 at 01:25AM

8
#1432 - Andy Davis / @biggernoise

12/20/2014 at 07:55AM

8
#1433 - ぷりケツにるぽ / @nillpo

12/20/2014 at 04:43PM

8
#1434 - 正攻法なボクでいく / @Eiryyy

12/20/2014 at 04:48PM

8
#1435 - Oliver Christ / @0liverChrist

12/21/2014 at 12:58AM

8
#1436 - Jordan Alexander / @HappppyPerson

12/21/2014 at 01:19AM

8
#1437 - Mukesh Soni / @rundwal

12/21/2014 at 08:52AM

8
#1438 - Alasdair Stalker / @alasdairstalker

12/21/2014 at 09:37PM

8
#1439 - Saher El-Neklawy / @saherneklawy

12/22/2014 at 07:49AM

8
#1440 - Geoff Huston / @AGeoffHuston

12/22/2014 at 05:43PM