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

4216 active golfers, 11500 entries

Leaderboard (lowest score wins):
8
#1651 - Tuleism / @tuleism

01/27/2015 at 10:27AM

8
#1652 - Pedro Santos / @pedrosans

01/27/2015 at 06:38PM

8
#1653 - Thomas Feiler / @SirTibsTibsford

01/27/2015 at 09:45PM

8
#1654 - Linda Liu / @_lindaliu_

01/27/2015 at 11:28PM

8
#1655 - Roman Firt / @RomanFirt

01/28/2015 at 08:20PM

8
#1656 - Evan Relf / @evanrelf

01/29/2015 at 01:21AM

8
#1657 - ~Nicolas_Poulain / @nicolaspoulain

01/29/2015 at 08:45PM

8
#1658 - Loser Face / @heypetewhats

01/29/2015 at 09:45PM

8
#1659 - George / @dyreshark

01/30/2015 at 01:27AM

8
#1660 - Allen Li / @thenightawl

01/30/2015 at 06:46AM

8
#1661 - Gary Liddon / @gyratory

01/30/2015 at 08:54AM

8
#1662 - Nick James / @Verbitan

01/31/2015 at 02:51PM

8
#1663 - Larry Battle / @LarryBattle

02/01/2015 at 06:32AM

8
#1664 - 裏連 / @uraren_bot

02/02/2015 at 06:58AM

8
#1665 - engy / @engydmw

02/02/2015 at 10:51PM

8
#1666 - Stephen Crosby / @stevecrozz

02/03/2015 at 05:58AM

8
#1667 - John Doe / @JohnOlkainfry

02/03/2015 at 07:12AM

8
#1668 - いっこつ / @eZb4

02/03/2015 at 06:07PM

8
#1669 - César Enrique / @caenrique93

02/03/2015 at 10:34PM

8
#1670 - Bobby / @rrockers

02/03/2015 at 11:25PM

8
#1671 - Michael Habibi / @mikehabibi

02/05/2015 at 12:57AM

8
#1672 - か◯りえ / @katorie

02/05/2015 at 07:35AM

8
#1673 - Omar Sandoval / @omsandov

02/06/2015 at 10:50AM

8
#1674 - Tom McCluskey / @TomMcCluskey

02/07/2015 at 02:39AM

8
#1675 - Matthew Westbrook / @MattWestbro

02/07/2015 at 08:06AM

8
#1676 - 9WVPGy9U / @9_gy9

02/07/2015 at 08:28AM

8
#1677 - Jacob / @0x604

02/08/2015 at 06:12PM

8
#1678 - Josh Greenwood / @JoshTGreenwood

02/10/2015 at 10:54PM

8
#1679 - Naoki Masuko / @nmasuko

02/12/2015 at 08:32AM

8
#1680 - Gary Moser / @garyRmoser

02/13/2015 at 06:00AM