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
#1651 - Alvin Samuelsson / @Avaconde

04/06/2015 at 10:49AM

8
#1652 - Koen De Causmaecker / @KoenCaus

04/07/2015 at 09:12PM

8
#1653 - Oleg Parashchenko / @olparko

04/07/2015 at 09:34PM

8
#1654 - 親の金でシャンプーを買うな / @jajkeqos

04/08/2015 at 06:53PM

8
#1655 - Rob Milward / @RobMilward

04/09/2015 at 10:32PM

8
#1656 - marcelo jacobus / @marcelo_jacobus

04/10/2015 at 03:21PM

8
#1657 - Andrew Lewis / @DrewsLostIt

04/13/2015 at 04:03AM

8
#1658 - kykyshka / @kykyshka91

04/13/2015 at 09:32PM

8
#1659 - Jonny / @Jonnytron

04/14/2015 at 08:34PM

8
#1660 - mx9 / @mutilx9

04/16/2015 at 05:27PM

8
#1661 - Adam Lewis / @thomas_aquinas

04/16/2015 at 07:43PM

8
#1662 - Josh Balloch / @ballouchebag

04/17/2015 at 09:50PM

8
#1663 - Nathan LaVeck / @nslaveck

04/19/2015 at 08:42PM

8
#1664 - 김재겸 / @KimJaeKyeom

04/20/2015 at 05:56AM

8
#1665 - i5513 / @i5513

04/20/2015 at 09:03PM

8
#1666 - Thomas / @moatra

04/21/2015 at 03:21AM

8
#1667 - Dylan Hart / @code_problem

04/21/2015 at 07:10AM

8
#1668 - Gracjan Grala / @gracjangrala

04/21/2015 at 10:56PM

8
#1669 - Ryan Glassett / @rollsavager

04/23/2015 at 05:22PM

8
#1670 - Jefferson Hudson / @JBHudson4

04/23/2015 at 08:01PM

8
#1671 - Sam Cristall / @sbcristall

04/24/2015 at 04:06PM

8
#1672 - Alex Kovar / @ajkovar

04/24/2015 at 05:53PM

8
#1673 - Kevin Yokley / @kyokley19

04/25/2015 at 07:43PM

8
#1674 - Chase Vasic / @ChaseVasic

04/26/2015 at 08:59AM

8
#1675 - Victor Haffreingue / @nobe_4

04/27/2015 at 06:34AM

8
#1676 - typp / @tehtyppz

04/27/2015 at 04:29PM

8
#1677 - Malaney / @iamjh

04/28/2015 at 05:34PM

8
#1678 - AC / @quadface

04/29/2015 at 10:45PM

8
#1679 - B Wilson / @ncatwill

04/30/2015 at 11:21PM

8
#1680 - Zach Morgan / @zpmorgan

05/01/2015 at 10:24PM