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

3562 active golfers, 9544 entries

Leaderboard (lowest score wins):
7
#841 - Gkratsia Tantilian / @Gkratsia

03/08/2017 at 08:37AM

7
#842 - Angel Chiang / @malakin

03/09/2017 at 05:38PM

7
#843 - Andre Cato / @DreBear800

03/09/2017 at 06:33PM

7
#844 - Jan Liu / @Jagsomarjan

03/10/2017 at 10:04AM

7
#845 - fakta om sniglar / @fakta_sniglar

03/10/2017 at 10:17AM

7
#846 - Alexander Bessonov / @nonsleepr

03/12/2017 at 03:05AM

7
#847 - Josh Callender / @Saponifi3d

03/13/2017 at 11:01PM

7
#848 - akanb / @GAkt6L6SlKhy8zA

03/14/2017 at 01:27AM

7
#849 - Moritz Sauter / @MoritzSauter

03/14/2017 at 03:57PM

7
#850 - Eozu / @eozuco

03/16/2017 at 02:46AM

7
#851 - Tose / @Toseim

03/16/2017 at 01:41PM

7
#852 - Sergey Ryabko / @RyabkoSergey

03/19/2017 at 08:23PM

7
#853 - Ilya Shakirov / @aelaau

03/20/2017 at 07:59AM

7
#854 - Cameron Jones / @Deimyts

03/22/2017 at 11:15PM

7
#855 - GVest Two / @GvestTwo

03/24/2017 at 07:56AM

7
#856 - Michael Firmin / @mcfirmin

03/24/2017 at 11:16PM

7
#857 - Dave J Kane / @davejkane

03/29/2017 at 09:38PM

7
#858 - Charlie OConor / @charlieoconor

03/31/2017 at 08:22PM

7
#859 - George / @Vge0rge

04/06/2017 at 09:46PM

7
#860 - Dmitriy / @dm_alt

04/08/2017 at 10:19AM

7
#861 - quiggy🌹 / @quiggy

04/10/2017 at 08:29PM

7
#862 - sharklasers552 / @sharklasers552

04/11/2017 at 02:43AM

7
#863 - Sebastian Rapp / @se_rapp

04/12/2017 at 07:34PM

7
#864 - Julien Philippon / @Apoutchika

04/12/2017 at 08:41PM

7
#865 - Фомин Денис / @TaPO4eg3D

04/13/2017 at 12:16PM

7
#866 - Terje Støback / @erjets

04/14/2017 at 12:18PM

7
#867 - Will Clardy / @quexxon

04/14/2017 at 07:30PM

7
#868 - Pekka / @avainasiakas

04/19/2017 at 08:44PM

7
#869 - 梧桐王子 / @WutongYujie

04/20/2017 at 02:25AM

7
#870 - Tom BP / @ThosBP

04/20/2017 at 10:33AM