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

4214 active golfers, 11496 entries

Leaderboard (lowest score wins):
8
#2701 - Тёма / @Timon_Surikat

08/19/2018 at 06:36PM

8
#2702 - Charles Sun / @charles_sun90

08/20/2018 at 01:50AM

8
#2703 - Coruja Queridinha / @miriamretka

08/20/2018 at 10:43AM

8
#2704 - Cam Smith / @Comradesmith

08/22/2018 at 08:31AM

8
#2705 - Francisco Rivera / @frivera621

08/25/2018 at 05:08PM

8
#2706 - Daniel Vaqueiro / @chimidea

08/28/2018 at 12:13AM

8
#2707 - Chi Jun / @jun13blu

08/28/2018 at 07:53AM

8
#2708 - Ryan Daniels / @RyanNeilDaniels

08/28/2018 at 09:17AM

8
#2709 - broken_art / @brokenart10

08/30/2018 at 02:22PM

8
#2710 - kevin / @kevin_sdc

09/02/2018 at 07:00AM

8
#2711 - Fellow Millennium / @Fellow2000

09/02/2018 at 02:23PM

8
#2712 - Ali Mostafavi / @Ali_Mostafavi_

09/08/2018 at 01:23PM

8
#2713 - daniel / @daniel31464605

09/10/2018 at 06:35PM

8
#2714 - A E / @aechirps

09/11/2018 at 11:26PM

8
#2715 - Bart3k / @Bart3k3

09/12/2018 at 06:39AM

8
#2716 - Ruben Paz / @IstarEldritch

09/16/2018 at 03:57PM

8
#2717 - konankun / @__konankun

09/19/2018 at 12:23AM

8
#2718 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 09:51PM

8
#2719 - Roch Mirabeau / @roch_kiss

09/20/2018 at 02:10AM

8
#2720 - Vasil Mikhalenya / @bazillek

09/20/2018 at 11:22AM

8
#2721 - Jordan / @RiotChomey

09/21/2018 at 09:21PM

8
#2722 - Not real / @Notreal70353016

09/22/2018 at 11:08PM

8
#2723 - Drill / @DrillTroll

09/24/2018 at 10:10PM

8
#2724 - Brendan B Amdocs / @AmdocsB

09/25/2018 at 03:37PM

8
#2725 - Roger Bongers / @RogerBongers

10/02/2018 at 01:03PM

8
#2726 - Jonghyun Yun / @JonghyunYun

10/04/2018 at 03:40AM

8
#2727 - John Oleksowicz / @JohnOlek

10/05/2018 at 05:08PM

8
#2728 - Andy Tockman / @atckmn

10/06/2018 at 09:33PM

8
#2729 - Taylor Shane Hawkins / @underempire

10/09/2018 at 05:06PM

8
#2730 - Sebastien Mesili / @seb_kr

10/11/2018 at 01:40AM