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):
8
#1531 - Pete Johns / @johnsyweb

12/09/2014 at 10:11AM

8
#1532 - kungfuchad / @kungfuchad

12/09/2014 at 06:22PM

8
#1533 - kobby / @_kafdot_

12/09/2014 at 09:11PM

8
#1534 - YNWP / @ynw_P

12/09/2014 at 09:58PM

8
#1535 - Scott Davis / @ScottAGRC

12/09/2014 at 10:10PM

8
#1536 - Ferran / @fompi

12/10/2014 at 03:16AM

8
#1537 - Bambu / @bambumandinga

12/10/2014 at 03:30AM

8
#1538 - Eric Lawless / @eplawless

12/10/2014 at 07:41AM

8
#1539 - Kuba Borowski / @prajmus

12/10/2014 at 01:59PM

8
#1540 - Matthew / @mpruszczyk

12/10/2014 at 08:35PM

8
#1541 - Chris Brown / @engineercyb

12/10/2014 at 11:19PM

8
#1542 - Pierre Houssin / @PierreHoussin

12/11/2014 at 12:04AM

8
#1543 - Gabor Lekeny / @leki75

12/11/2014 at 08:13AM

8
#1544 - Andrew Loucky / @merely_oolong

12/11/2014 at 03:56PM

8
#1545 - Nicolas Dascanio / @NicoDascanio

12/11/2014 at 08:22PM

8
#1546 - gbin / @gbin

12/12/2014 at 06:23AM

8
#1547 - Yan Yang / @_YanYang

12/12/2014 at 06:41AM

8
#1548 - Michi Loro / @michiloro

12/12/2014 at 01:45PM

8
#1549 - Christoph Paulik / @cpaulik

12/12/2014 at 10:46PM

8
#1550 - Steve Alison / @Steve_Alison

12/12/2014 at 11:51PM

8
#1551 - Martin Habovštiak / @kixunil

12/13/2014 at 11:23PM

8
#1552 - Luca Giovagnoli / @ryuzaki250

12/14/2014 at 09:05AM

8
#1553 - Rasmus P / @rasmup

12/14/2014 at 01:35PM

8
#1554 - Éric Calvayrac / @xarmux2

12/14/2014 at 04:50PM

8
#1555 - Erim Secla / @Alcesmire

12/15/2014 at 03:23AM

8
#1556 - Francescu Santoni / @Francescu

12/15/2014 at 12:31PM

8
#1557 - Virassamy Yohan / @Yoh_Ahn

12/15/2014 at 03:27PM

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

12/16/2014 at 12:30PM

8
#1559 - Kevin Dahlhausen / @powertwenty

12/16/2014 at 09:44PM

8
#1560 - Jeremy Gold / @JeremyGold3

12/17/2014 at 03:46AM