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
#2761 - mkaminaga / @mkmng3

05/31/2019 at 11:42AM

8
#2762 - Branden Clark / @clarkb_cs

06/04/2019 at 05:31AM

8
#2763 - Tim Dean / @Tmdean

06/06/2019 at 06:14PM

8
#2764 - Graeme Smith / @InstaGraeme

06/07/2019 at 01:15PM

8
#2765 - Rwithik Manoj / @RwithikM

06/07/2019 at 01:45PM

8
#2766 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 08:22PM

8
#2767 - Koba / @lkoba

06/11/2019 at 08:51PM

8
#2768 - Noel Evans / @noelevans

06/13/2019 at 11:17AM

8
#2769 - Frank Harrison / @doublethefish

06/16/2019 at 12:23PM

8
#2770 - Fabien C. / @vaga_io

06/17/2019 at 01:24PM

8
#2771 - Robin / @0x767570

06/18/2019 at 09:07PM

8
#2772 - Reportados123 / @reportados123

06/19/2019 at 07:15PM

8
#2773 - seul / @seul15987381

06/21/2019 at 04:42AM

8
#2774 - Johannes / @joka253

06/21/2019 at 07:04AM

8
#2775 - Aurel / @AurelienFebvre

06/26/2019 at 08:41PM

8
#2776 - Josh Braun / @bbraunj

06/30/2019 at 04:25AM

8
#2777 - April / @April90303877

07/04/2019 at 04:20PM

8
#2778 - Chester Yap / @Chest_ErYap

07/06/2019 at 05:20AM

8
#2779 - hielke / @hielke24840788

07/07/2019 at 11:47AM

8
#2780 - Mike Clark / @mikeclark729

07/09/2019 at 02:24PM

8
#2781 - alaric27 / @alaric273

07/11/2019 at 08:34AM

8
#2782 - Sean Sullivan / @_seanyneutron

07/11/2019 at 07:05PM

8
#2783 - Floyd Gantt / @fgantt

07/12/2019 at 08:14PM

8
#2784 - Crystal L / @Cartsly

07/13/2019 at 08:48PM

8
#2785 - icicle / @icicle_freeze

07/14/2019 at 02:52PM

8
#2786 - r / @nameequalsmain

07/16/2019 at 12:50PM

8
#2787 - Neil Struthers / @struthersneil

07/17/2019 at 01:10AM

8
#2788 - Philip Stephenson / @philip_iv

07/19/2019 at 09:05PM

8
#2789 - Clint Caudle / @ClintCaudle

07/22/2019 at 04:45AM

8
#2790 - Joe Fahnestock🌵 / @Joecupojoe

07/23/2019 at 02:17PM