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

3825 active golfers, 10310 entries

Leaderboard (lowest score wins):
8
#1531 - Larry Battle / @LarryBattle

02/01/2015 at 06:32AM

8
#1532 - 裏連 / @uraren_bot

02/02/2015 at 06:58AM

8
#1533 - engy / @engydmw

02/02/2015 at 10:51PM

8
#1534 - Stephen Crosby / @stevecrozz

02/03/2015 at 05:58AM

8
#1535 - John Doe / @JohnOlkainfry

02/03/2015 at 07:12AM

8
#1536 - いっこつ / @eZb4

02/03/2015 at 06:07PM

8
#1537 - César Enrique / @caenrique93

02/03/2015 at 10:34PM

8
#1538 - Bobby / @rrockers

02/03/2015 at 11:25PM

8
#1539 - Michael Habibi / @mikehabibi

02/05/2015 at 12:57AM

8
#1540 - か◯りえ / @katorie

02/05/2015 at 07:35AM

8
#1541 - Omar Sandoval / @omsandov

02/06/2015 at 10:50AM

8
#1542 - Tom McCluskey / @TomMcCluskey

02/07/2015 at 02:39AM

8
#1543 - Matthew Westbrook / @MattWestbro

02/07/2015 at 08:06AM

8
#1544 - 9WVPGy9U / @9_gy9

02/07/2015 at 08:28AM

8
#1545 - Jacob / @0x604

02/08/2015 at 06:12PM

8
#1546 - Josh Greenwood / @JoshTGreenwood

02/10/2015 at 10:54PM

8
#1547 - Naoki Masuko / @nmasuko

02/12/2015 at 08:32AM

8
#1548 - Gary Moser / @garyRmoser

02/13/2015 at 06:00AM

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

02/13/2015 at 03:03PM

8
#1550 - James Pringle / @mathbyjames

02/13/2015 at 03:27PM

8
#1551 - Jesse Hazen / @jhazen532

02/13/2015 at 07:27PM

8
#1552 - Kareeeeem / @VegetableBlanka

02/14/2015 at 12:52PM

8
#1553 - Pierre Langlois / @_pierrelanglois

02/14/2015 at 01:55PM

8
#1554 - Georgi Dimitrov / @gjdimitrov

02/14/2015 at 06:21PM

8
#1555 - Jae Won Kim / @jaewone

02/16/2015 at 07:32AM

8
#1556 - Vu Minh Tan / @vuminhtan

02/16/2015 at 08:12AM

8
#1557 - brobostigon / @colonel_korn

02/17/2015 at 04:41PM

8
#1558 - Michael Giuffrida / @mgiuffrida

02/20/2015 at 04:06AM

8
#1559 - Thiago Prado / @5k1pp3r

02/20/2015 at 03:42PM

8
#1560 - Jérôme Salignon / @JeromeSalignon

02/21/2015 at 03:38PM