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

4215 active golfers, 11497 entries

Leaderboard (lowest score wins):
8
#1531 - Ferran / @fompi

12/10/2014 at 03:16AM

8
#1532 - Bambu / @bambumandinga

12/10/2014 at 03:30AM

8
#1533 - Eric Lawless / @eplawless

12/10/2014 at 07:41AM

8
#1534 - Kuba Borowski / @prajmus

12/10/2014 at 01:59PM

8
#1535 - Matthew / @mpruszczyk

12/10/2014 at 08:35PM

8
#1536 - Chris Brown / @engineercyb

12/10/2014 at 11:19PM

8
#1537 - Pierre Houssin / @PierreHoussin

12/11/2014 at 12:04AM

8
#1538 - Gabor Lekeny / @leki75

12/11/2014 at 08:13AM

8
#1539 - Andrew Loucky / @merely_oolong

12/11/2014 at 03:56PM

8
#1540 - Nicolas Dascanio / @NicoDascanio

12/11/2014 at 08:22PM

8
#1541 - gbin / @gbin

12/12/2014 at 06:23AM

8
#1542 - Yan Yang / @_YanYang

12/12/2014 at 06:41AM

8
#1543 - Michi Loro / @michiloro

12/12/2014 at 01:45PM

8
#1544 - Christoph Paulik / @cpaulik

12/12/2014 at 10:46PM

8
#1545 - Steve Alison / @Steve_Alison

12/12/2014 at 11:51PM

8
#1546 - Martin Habovštiak / @kixunil

12/13/2014 at 11:23PM

8
#1547 - Luca Giovagnoli / @ryuzaki250

12/14/2014 at 09:05AM

8
#1548 - Rasmus P / @rasmup

12/14/2014 at 01:35PM

8
#1549 - Éric Calvayrac / @xarmux2

12/14/2014 at 04:50PM

8
#1550 - Erim Secla / @Alcesmire

12/15/2014 at 03:23AM

8
#1551 - Francescu Santoni / @Francescu

12/15/2014 at 12:31PM

8
#1552 - Virassamy Yohan / @Yoh_Ahn

12/15/2014 at 03:27PM

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

12/16/2014 at 12:30PM

8
#1554 - Kevin Dahlhausen / @powertwenty

12/16/2014 at 09:44PM

8
#1555 - Jeremy Gold / @JeremyGold3

12/17/2014 at 03:46AM

8
#1556 - Jesse Emond / @JesseEmond

12/17/2014 at 05:25AM

8
#1557 - thinkjp / @thinkjpinfo

12/17/2014 at 09:04PM

8
#1558 - Andrew Leung / @aleungpivotal

12/17/2014 at 10:02PM

8
#1559 - José Maurinho / @Jose_Maurinho

12/18/2014 at 08:52PM

8
#1560 - d1uckym d1uckym / @d1uckym

12/18/2014 at 09:43PM