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

05/31/2019 at 11:42AM

8
#2852 - Branden Clark / @clarkb_cs

06/04/2019 at 05:31AM

8
#2853 - Tim Dean / @Tmdean

06/06/2019 at 06:14PM

8
#2854 - Graeme Smith / @InstaGraeme

06/07/2019 at 01:15PM

8
#2855 - Rwithik Manoj / @RwithikM

06/07/2019 at 01:45PM

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

06/11/2019 at 08:22PM

8
#2857 - Koba / @lkoba

06/11/2019 at 08:51PM

8
#2858 - Noel Evans / @noelevans

06/13/2019 at 11:17AM

8
#2859 - Frank Harrison / @doublethefish

06/16/2019 at 12:23PM

8
#2860 - Fabien C. / @vaga_io

06/17/2019 at 01:24PM

8
#2861 - Robin / @0x767570

06/18/2019 at 09:07PM

8
#2862 - Reportados123 / @reportados123

06/19/2019 at 07:15PM

8
#2863 - seul / @seul15987381

06/21/2019 at 04:42AM

8
#2864 - Johannes / @joka253

06/21/2019 at 07:04AM

8
#2865 - Aurel / @AurelienFebvre

06/26/2019 at 08:41PM

8
#2866 - Josh Braun / @bbraunj

06/30/2019 at 04:25AM

8
#2867 - April / @April90303877

07/04/2019 at 04:20PM

8
#2868 - Chester Yap / @Chest_ErYap

07/06/2019 at 05:20AM

8
#2869 - hielke / @hielke24840788

07/07/2019 at 11:47AM

8
#2870 - Mike Clark / @mikeclark729

07/09/2019 at 02:24PM

8
#2871 - alaric27 / @alaric273

07/11/2019 at 08:34AM

8
#2872 - Sean Sullivan / @_seanyneutron

07/11/2019 at 07:05PM

8
#2873 - Floyd Gantt / @fgantt

07/12/2019 at 08:14PM

8
#2874 - Crystal L / @Cartsly

07/13/2019 at 08:48PM

8
#2875 - icicle / @icicle_freeze

07/14/2019 at 02:52PM

8
#2876 - r / @nameequalsmain

07/16/2019 at 12:50PM

8
#2877 - Neil Struthers / @struthersneil

07/17/2019 at 01:10AM

8
#2878 - Philip Stephenson / @philip_iv

07/19/2019 at 09:05PM

8
#2879 - Clint Caudle / @ClintCaudle

07/22/2019 at 04:45AM

8
#2880 - Joe Fahnestock🌵 / @Joecupojoe

07/23/2019 at 02:17PM