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

4174 active golfers, 11380 entries

Leaderboard (lowest score wins):
8
#1531 - Chris Brown / @engineercyb

12/10/2014 at 11:19PM

8
#1532 - Pierre Houssin / @PierreHoussin

12/11/2014 at 12:04AM

8
#1533 - Gabor Lekeny / @leki75

12/11/2014 at 08:13AM

8
#1534 - Andrew Loucky / @merely_oolong

12/11/2014 at 03:56PM

8
#1535 - Nicolas Dascanio / @NicoDascanio

12/11/2014 at 08:22PM

8
#1536 - gbin / @gbin

12/12/2014 at 06:23AM

8
#1537 - Yan Yang / @_YanYang

12/12/2014 at 06:41AM

8
#1538 - Michi Loro / @michiloro

12/12/2014 at 01:45PM

8
#1539 - Christoph Paulik / @cpaulik

12/12/2014 at 10:46PM

8
#1540 - Steve Alison / @Steve_Alison

12/12/2014 at 11:51PM

8
#1541 - Martin Habovštiak / @kixunil

12/13/2014 at 11:23PM

8
#1542 - Luca Giovagnoli / @ryuzaki250

12/14/2014 at 09:05AM

8
#1543 - Rasmus P / @rasmup

12/14/2014 at 01:35PM

8
#1544 - Éric Calvayrac / @xarmux2

12/14/2014 at 04:50PM

8
#1545 - Erim Secla / @Alcesmire

12/15/2014 at 03:23AM

8
#1546 - Francescu Santoni / @Francescu

12/15/2014 at 12:31PM

8
#1547 - Virassamy Yohan / @Yoh_Ahn

12/15/2014 at 03:27PM

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

12/16/2014 at 12:30PM

8
#1549 - Kevin Dahlhausen / @powertwenty

12/16/2014 at 09:44PM

8
#1550 - Jeremy Gold / @JeremyGold3

12/17/2014 at 03:46AM

8
#1551 - Jesse Emond / @JesseEmond

12/17/2014 at 05:25AM

8
#1552 - thinkjp / @thinkjpinfo

12/17/2014 at 09:04PM

8
#1553 - Andrew Leung / @aleungpivotal

12/17/2014 at 10:02PM

8
#1554 - José Maurinho / @Jose_Maurinho

12/18/2014 at 08:52PM

8
#1555 - d1uckym d1uckym / @d1uckym

12/18/2014 at 09:43PM

8
#1556 - Adam Redfern / @AdmRedfern

12/19/2014 at 04:24PM

8
#1557 - Lieven Keersmaekers / @LievenKeersmaek

12/19/2014 at 05:03PM

8
#1558 - Wayne Franklin / @waf1waf

12/20/2014 at 01:25AM

8
#1559 - Andy Davis / @biggernoise

12/20/2014 at 07:55AM

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

12/20/2014 at 04:43PM