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

3953 active golfers, 10705 entries

Leaderboard (lowest score wins):
8
#1771 - Eldar Yusupov / @EldarYusupov

06/04/2015 at 08:28PM

8
#1772 - Steve Bitner / @fourbitbots

06/05/2015 at 02:22AM

8
#1773 - Quentin / @MrXedac

06/05/2015 at 12:27PM

8
#1774 - Gabriel Magno / @GabrielMagno

06/08/2015 at 10:17PM

8
#1775 - Vinícius Zambaldi / @fzvinicius

06/08/2015 at 10:19PM

8
#1776 - João Pedro Foscarini / @FoscariniJoao

06/09/2015 at 12:35PM

8
#1777 - ッ / @e38383

06/09/2015 at 02:21PM

8
#1778 - Jezen Thomas / @jezenthomas

06/09/2015 at 08:40PM

8
#1779 - How Si Wei / @houxiwu

06/10/2015 at 11:32AM

8
#1780 - Vishwas B Sharma / @sharmavishwas7

06/10/2015 at 07:07PM

8
#1781 - Quota / @Quotad

06/12/2015 at 09:17AM

8
#1782 - Jake Gillespie / @jdgillespie91

06/12/2015 at 10:00PM

8
#1783 - Mutter Mumble / @muttermumble

06/15/2015 at 05:03PM

8
#1784 - Lifepillar / @lifepillar

06/15/2015 at 09:05PM

8
#1785 - Fnord Everywhere / @FnordE

06/18/2015 at 12:02PM

8
#1786 - SP / @vimgolfer42

06/18/2015 at 11:00PM

8
#1787 - raghu erapaneedi / @raghue9

06/19/2015 at 09:10AM

8
#1788 - Mathew Abado / @MathewAbado

06/19/2015 at 03:45PM

8
#1789 - qwe31asd / @qwe31asd

06/19/2015 at 04:58PM

8
#1790 - roboguy / @roboguy

06/20/2015 at 03:50AM

8
#1791 - Albert Lo / @seroalbert

06/20/2015 at 09:53AM

8
#1792 - isayoldchap / @isayoldchap

06/20/2015 at 06:58PM

8
#1793 - Geoff Gu / @geoff_gu

06/23/2015 at 03:58PM

8
#1794 - John Freeman / @TheJohnFreeman

06/24/2015 at 01:48AM

8
#1795 - Igor Soarez / @igorsoarez

06/24/2015 at 09:31AM

8
#1796 - Vallaa / @2qq3KpoVpQ7xxDK

06/24/2015 at 11:19AM

8
#1797 - Jimmy Börjesson / @alcesleo

06/24/2015 at 01:51PM

8
#1798 - Joel Elkins / @dice_tea

06/24/2015 at 06:02PM

8
#1799 - Skúli Jóhannsson / @skulibj

06/25/2015 at 04:17PM

8
#1800 - Jan Wirth / @FranzSkuffka

06/29/2015 at 09:04AM