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

3950 active golfers, 10694 entries

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

08/19/2018 at 06:36PM

8
#2612 - Charles Sun / @charles_sun90

08/20/2018 at 01:50AM

8
#2613 - Coruja Queridinha / @miriamretka

08/20/2018 at 10:43AM

8
#2614 - Cam Smith / @Comradesmith

08/22/2018 at 08:31AM

8
#2615 - Francisco Rivera / @frivera621

08/25/2018 at 05:08PM

8
#2616 - Daniel Vaqueiro / @chimidea

08/28/2018 at 12:13AM

8
#2617 - Chi Jun / @jun13blu

08/28/2018 at 07:53AM

8
#2618 - Ryan Daniels / @RyanNeilDaniels

08/28/2018 at 09:17AM

8
#2619 - broken_art / @brokenart10

08/30/2018 at 02:22PM

8
#2620 - kevin / @kevin_sdc

09/02/2018 at 07:00AM

8
#2621 - Fellow Millennium / @Fellow2000

09/02/2018 at 02:23PM

8
#2622 - Ali Mostafavi / @Ali_Mostafavi_

09/08/2018 at 01:23PM

8
#2623 - daniel / @daniel31464605

09/10/2018 at 06:35PM

8
#2624 - A E / @aechirps

09/11/2018 at 11:26PM

8
#2625 - Bart3k / @Bart3k3

09/12/2018 at 06:39AM

8
#2626 - Ruben Paz / @IstarEldritch

09/16/2018 at 03:57PM

8
#2627 - konankun / @__konankun

09/19/2018 at 12:23AM

8
#2628 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 09:51PM

8
#2629 - Roch Mirabeau / @roch_kiss

09/20/2018 at 02:10AM

8
#2630 - Vasil Mikhalenya / @bazillek

09/20/2018 at 11:22AM

8
#2631 - Jordan / @RiotChomey

09/21/2018 at 09:21PM

8
#2632 - Not real / @Notreal70353016

09/22/2018 at 11:08PM

8
#2633 - Drill / @DrillTroll

09/24/2018 at 10:10PM

8
#2634 - Brendan B Amdocs / @AmdocsB

09/25/2018 at 03:37PM

8
#2635 - Roger Bongers / @RogerBongers

10/02/2018 at 01:03PM

8
#2636 - Jonghyun Yun / @JonghyunYun

10/04/2018 at 03:40AM

8
#2637 - John Oleksowicz / @JohnOlek

10/05/2018 at 05:08PM

8
#2638 - Keyboard Fire / @KeyboardFire

10/06/2018 at 09:33PM

8
#2639 - Taylor Shane Hawkins / @underempire

10/09/2018 at 05:06PM

8
#2640 - Sebastien Mesili / @seb_kr

10/11/2018 at 01:40AM