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

4205 active golfers, 11473 entries

Leaderboard (lowest score wins):
7
#751 - Sebastian Korten / @FlashKorten

10/26/2016 at 09:22AM

7
#752 - Valerio Angelini / @amailp

10/26/2016 at 08:16PM

7
#753 - F B / @felixbigg

10/27/2016 at 02:59PM

7
#754 - ben kavanagh / @bkava

10/28/2016 at 03:57AM

7
#755 - Taco V / @LasNachosGolfs

10/28/2016 at 10:12PM

7
#756 - Jonathan Elliott / @jon__elliott

10/29/2016 at 10:28PM

7
#757 - Kracejic / @kracejic

10/30/2016 at 09:08PM

7
#758 - Chris Cummings / @mistahcummings

10/30/2016 at 11:37PM

7
#759 - Joseph Simone / @averagejoey2000

10/31/2016 at 09:53PM

7
#760 - scottarver / @scottarver

11/03/2016 at 03:07AM

7
#761 - Davis Fields / @i301585

11/03/2016 at 11:21PM

7
#762 - nemonomine / @nemonomine

11/06/2016 at 04:19PM

7
#763 - John Hassell / @jhassell

11/07/2016 at 02:52PM

7
#764 - Ignacio Catalina / @ignaciocatalina

11/08/2016 at 01:35PM

7
#765 - Brandon Borden / @bborden0

11/11/2016 at 07:25AM

7
#766 - Alan Turing / @alantrng

11/13/2016 at 08:44AM

7
#767 - Scott Hoggarth / @Hoggarth

11/13/2016 at 03:59PM

7
#768 - Marko / @ultrox

11/14/2016 at 12:50AM

7
#769 - 張育瑄 / @harry830622

11/14/2016 at 12:27PM

7
#770 - i1464083 / @i1464083

11/18/2016 at 11:37AM

7
#771 - J-F R. / @RheaultJF

11/18/2016 at 01:17PM

7
#772 - Rodney Visser / @_Radnus

11/23/2016 at 09:18PM

7
#773 - Jon Louie / @jjisnow

11/24/2016 at 02:23AM

7
#774 - Guillermo Guirao / @Funkatic

11/24/2016 at 08:42AM

7
#775 - Wessel Sinnema / @wsinnema

11/26/2016 at 12:07PM

7
#776 - Oskar Norman / @Norman0

11/26/2016 at 11:37PM

7
#777 - Roger Guldbrandsen / @kinbiko

11/30/2016 at 12:07AM

7
#778 - Doru-Mihai Muntean / @dorumihai

12/02/2016 at 02:15PM

7
#779 - rainer b / @roinnerr

12/04/2016 at 09:47PM

7
#780 - nano / @nannotm

12/11/2016 at 02:24AM