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

3951 active golfers, 10698 entries

Leaderboard (lowest score wins):
8
#1711 - Zach Morgan / @zpmorgan

05/01/2015 at 10:24PM

8
#1712 - Wandering ponderer / @0proxycon

05/02/2015 at 01:06PM

8
#1713 - Oleg Alfalfa / @6alfalfa9

05/03/2015 at 09:37AM

8
#1714 - Tim Abramson / @timabramson

05/04/2015 at 06:18PM

8
#1715 - Adrien Fabre / @statox42

05/06/2015 at 05:53PM

8
#1716 - Cosmin Banu / @cosminb82

05/06/2015 at 08:04PM

8
#1717 - Chi Bong Ho / @chibongho

05/07/2015 at 01:04AM

8
#1718 - Marco Antognini / @MrHiura

05/07/2015 at 12:26PM

8
#1719 - Dave Mosher / @dmosher

05/07/2015 at 04:02PM

8
#1720 - vim_ninja / @vim_ninja

05/07/2015 at 06:57PM

8
#1721 - for2nduse / @for2nduse

05/07/2015 at 09:55PM

8
#1722 - Rene Mendoza / @rene_mendoza

05/07/2015 at 11:20PM

8
#1723 - π / @paivaspol

05/08/2015 at 02:49AM

8
#1724 - Pallav Agarwal / @pallavagarwal07

05/08/2015 at 09:51AM

8
#1725 - Austtin Schwartz / @490T2Schwartz

05/08/2015 at 02:41PM

8
#1726 - Albert Pumarola / @AlbertPumarola

05/08/2015 at 09:41PM

8
#1727 - Lindsay Swift / @_lindsai_

05/08/2015 at 09:48PM

8
#1728 - Roger Gilliar / @rogergl

05/09/2015 at 12:32PM

8
#1729 - Alexey Golev / @alexeygolev

05/09/2015 at 10:48PM

8
#1730 - Brian Lai / @blaiym

05/10/2015 at 06:52AM

8
#1731 - James Whiteman / @LucidSimple

05/10/2015 at 10:58PM

8
#1732 - Markus Kasper / @KasperBox

05/11/2015 at 03:16PM

8
#1733 - Charles Martin / @instinctive

05/11/2015 at 07:55PM

8
#1734 - Spy / @thatspysaspy

05/11/2015 at 09:31PM

8
#1735 - Ridwan Mulyadi / @ridmul

05/11/2015 at 11:52PM

8
#1736 - Arsenic Hall / @FoxLisk

05/12/2015 at 11:10PM

8
#1737 - Jonas Ng / @jnshey

05/15/2015 at 01:42PM

8
#1738 - Stephen Dolan / @Stephen_Dolan

05/15/2015 at 02:13PM

8
#1739 - Emil Soman / @emilsoman

05/17/2015 at 04:18PM

8
#1740 - peterm / @peterm0x

05/17/2015 at 05:56PM