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

3871 active golfers, 10444 entries

Leaderboard (lowest score wins):
8
#1831 - Jinzhou Zhang / @jinzhouz

09/02/2015 at 07:32AM

8
#1832 - Nicholas Marrone / @nickmarrone

09/05/2015 at 08:45PM

8
#1833 - Lost Web Designs / @lostwebdesign

09/06/2015 at 06:01PM

8
#1834 - Yaroslav Kanarev / @yarosurabu

09/07/2015 at 11:45AM

8
#1835 - Igor Martynov / @snailbaron

09/07/2015 at 04:16PM

8
#1836 - vimgolf jonnyb / @vimgolf_jonnyb

09/10/2015 at 11:32AM

8
#1837 - MikeT / @mik3t

09/10/2015 at 03:11PM

8
#1838 - Ben Vandervalk / @benvvalk

09/12/2015 at 01:14AM

8
#1839 - Jon Nyman / @NymanJon

09/12/2015 at 09:30AM

8
#1840 - Marcin Sza / @coot_

09/12/2015 at 09:51AM

8
#1841 - François Connétable / @fco38

09/13/2015 at 06:24PM

8
#1842 - Victor Kasatkin / @vikasatkin

09/14/2015 at 05:20AM

8
#1843 - dd / @dd22147119

09/14/2015 at 04:08PM

8
#1844 - Brian Rodriguez / @thatbrod

09/15/2015 at 01:07AM

8
#1845 - Nelson Senna / @nelson_senna

09/15/2015 at 03:43AM

8
#1846 - JimSo / @JimSo4

09/17/2015 at 04:30AM

8
#1847 - AA / @stonewareslord

09/18/2015 at 07:31PM

8
#1848 - Pete Sevander / @Sevanteri

09/19/2015 at 12:17PM

8
#1849 - Thomas Chapon / @tommitek

09/19/2015 at 11:45PM

8
#1850 - Emmanuel Lund / @elund_az

09/20/2015 at 12:24PM

8
#1851 - Thomas Draper / @QuanTom561

09/20/2015 at 11:26PM

8
#1852 - David Stimpert / @DavidStimpert

09/21/2015 at 02:06AM

8
#1853 - Maximilian / @ComexDiver

09/21/2015 at 01:45PM

8
#1854 - Ronnie McCall / @RonnieMcC

09/21/2015 at 03:08PM

8
#1855 - Will Gray / @graywh

09/21/2015 at 04:31PM

8
#1856 - ORchard test / @BilboBrovall

09/22/2015 at 02:44PM

8
#1857 - Karl August / @ClockworkCoder

09/23/2015 at 12:16PM

8
#1858 - Filype Pereira / @FilypePereira

09/23/2015 at 12:58PM

8
#1859 - buck heroux / @buckheroux

09/25/2015 at 08:40PM

8
#1860 - Marc Cathomen / @marccathomen

09/26/2015 at 10:04PM