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
#1651 - Evan Relf / @evanrelf

01/29/2015 at 01:21AM

8
#1652 - ~Nicolas_Poulain / @nicolaspoulain

01/29/2015 at 08:45PM

8
#1653 - Loser Face / @heypetewhats

01/29/2015 at 09:45PM

8
#1654 - George / @dyreshark

01/30/2015 at 01:27AM

8
#1655 - Allen Li / @thenightawl

01/30/2015 at 06:46AM

8
#1656 - Gary Liddon / @gyratory

01/30/2015 at 08:54AM

8
#1657 - Nick James / @Verbitan

01/31/2015 at 02:51PM

8
#1658 - Larry Battle / @LarryBattle

02/01/2015 at 06:32AM

8
#1659 - 裏連 / @uraren_bot

02/02/2015 at 06:58AM

8
#1660 - engy / @engydmw

02/02/2015 at 10:51PM

8
#1661 - Stephen Crosby / @stevecrozz

02/03/2015 at 05:58AM

8
#1662 - John Doe / @JohnOlkainfry

02/03/2015 at 07:12AM

8
#1663 - いっこつ / @eZb4

02/03/2015 at 06:07PM

8
#1664 - César Enrique / @caenrique93

02/03/2015 at 10:34PM

8
#1665 - Bobby / @rrockers

02/03/2015 at 11:25PM

8
#1666 - Michael Habibi / @mikehabibi

02/05/2015 at 12:57AM

8
#1667 - か◯りえ / @katorie

02/05/2015 at 07:35AM

8
#1668 - Omar Sandoval / @omsandov

02/06/2015 at 10:50AM

8
#1669 - Tom McCluskey / @TomMcCluskey

02/07/2015 at 02:39AM

8
#1670 - Matthew Westbrook / @MattWestbro

02/07/2015 at 08:06AM

8
#1671 - 9WVPGy9U / @9_gy9

02/07/2015 at 08:28AM

8
#1672 - Jacob / @0x604

02/08/2015 at 06:12PM

8
#1673 - Josh Greenwood / @JoshTGreenwood

02/10/2015 at 10:54PM

8
#1674 - Naoki Masuko / @nmasuko

02/12/2015 at 08:32AM

8
#1675 - Gary Moser / @garyRmoser

02/13/2015 at 06:00AM

8
#1676 - Алексанр Цыганков / @capybarov

02/13/2015 at 03:03PM

8
#1677 - James Pringle / @mathbyjames

02/13/2015 at 03:27PM

8
#1678 - Jesse Hazen / @jhazen532

02/13/2015 at 07:27PM

8
#1679 - Kareeeeem / @VegetableBlanka

02/14/2015 at 12:52PM

8
#1680 - Pierre Langlois / @_pierrelanglois

02/14/2015 at 01:55PM