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

4213 active golfers, 11494 entries

Leaderboard (lowest score wins):
9
#3631 - 超絶電源 / @boboboxman90

05/01/2020 at 02:12PM

9
#3632 - James Dermelj / @JamesDermelj

05/04/2020 at 07:10AM

9
#3633 - @abimelechbeutelbilch@fulda.social 𝕏 / @FHashitoku

05/08/2020 at 02:45PM

9
#3634 - Pawel Wenda / @pwlwnd

05/13/2020 at 08:47PM

9
#3635 - Manish Baghel / @ManishBaghelz

05/15/2020 at 02:36AM

9
#3636 - たぬぽん / @wiz_pon

05/16/2020 at 07:38PM

9
#3637 - Mack Hutsell / @sellshuts

05/24/2020 at 06:43PM

9
#3638 - Robin Abrahamsson / @rqAbrahamsson

05/31/2020 at 07:52AM

9
#3639 - Martin Landsem / @landsematwork

06/17/2020 at 08:34AM

9
#3640 - Di Liu / @Skyerliu

06/20/2020 at 06:26PM

9
#3641 - JLObject / @powful_panda

07/01/2020 at 07:53PM

9
#3642 - ぼとぼと / @boto_voto

07/31/2020 at 05:42PM

9
#3643 - 最近太り気味で。 / @doka2000gt

08/23/2020 at 11:06PM

9
#3644 - lz2ggf / @lz2ggf

08/26/2020 at 07:41PM

9
#3645 - Camilo A. Matajira / @CamiloMatajira

09/06/2020 at 11:21AM

9
#3646 - Ryan / @ryan_lardinois

09/07/2020 at 12:18AM

9
#3647 - Pepe / @PedroVassena

09/08/2020 at 09:48PM

9
#3648 - alrito / @alrito6

09/12/2020 at 10:45PM

9
#3649 - Lex Romanov / @feax_ru

09/29/2020 at 05:35PM

9
#3650 - Arend Peter / @APCastelein

10/01/2020 at 01:25AM

9
#3651 - rr / @rodgeur31

10/14/2020 at 09:49PM

9
#3652 - hhh / @hhh78116797

10/17/2020 at 04:29PM

9
#3653 - Matt Milliron / @valueiron

11/28/2020 at 05:01AM

9
#3654 - david / @david52856086

12/15/2020 at 10:52PM

9
#3655 - doran / @doran89993520

12/21/2020 at 04:53PM

9
#3656 - 방일우 / @CD5PpB36ZR5kWtk

01/07/2021 at 12:46AM

9
#3657 - ルシュメ / @arupakanohito

12/12/2021 at 09:51AM

9
#3658 - 一茶(ISSA) / @edge2992

05/29/2022 at 01:45AM

9
#3659 - JustForGiggles / @NeedOneForNow

04/03/2023 at 12:36AM

9
#3660 - steve / @steve35773420

05/14/2023 at 08:15PM