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

4209 active golfers, 11484 entries

Leaderboard (lowest score wins):
7
#811 - ZW / @ZW73226885

01/24/2017 at 07:02PM

7
#812 - Daniel Hogan / @danielhogan21

01/26/2017 at 04:05AM

7
#813 - Birger / @Birger_Ni

01/26/2017 at 07:38AM

7
#814 - nitin chadha / @upcomingnewton

01/26/2017 at 09:41AM

7
#815 - Harold Treen / @haroldtreen

01/30/2017 at 08:06PM

7
#816 - Alexander Cederblad / @alexceder

02/02/2017 at 01:22AM

7
#817 - Ghost of Juan Pierre / @GhostJuanPierre

02/02/2017 at 03:55PM

7
#818 - aselaIllayaparachchi / @asela38

02/04/2017 at 03:48PM

7
#819 - Nique Tarace / @lllollkkii

02/05/2017 at 08:36AM

7
#820 - Mohd Amin Yuddin / @mohdaminyuddin

02/07/2017 at 05:25AM

7
#821 - Joaquin Coronel / @cantstoptheguac

02/08/2017 at 11:25PM

7
#822 - eban / @eban

02/14/2017 at 04:56AM

7
#823 - Russell Endicott / @bitester

02/15/2017 at 09:15PM

7
#824 - Yann / @yannstad

02/19/2017 at 08:34AM

7
#825 - 遊騎 / @YukiyasuKK

02/19/2017 at 02:51PM

7
#826 - Victor Chabbert / @victor_chabbert

02/20/2017 at 03:51PM

7
#827 - Durell Smith / @durealest

02/21/2017 at 04:59AM

7
#828 - Tim Grebien / @tiggg

02/21/2017 at 11:15AM

7
#829 - Edras / @Edras41862627

02/22/2017 at 11:53AM

7
#830 - Max M / @_maxmel

02/22/2017 at 09:25PM

7
#831 - Vimgolf / @vimgolf987

02/27/2017 at 04:42AM

7
#832 - Cheer / @yougec

02/27/2017 at 08:16AM

7
#833 - Márton Németh / @nemarci42

02/28/2017 at 08:23PM

7
#834 - Amber Chen / @AmberCh63187797

03/03/2017 at 03:45AM

7
#835 - Raymond Chee / @rchomium

03/05/2017 at 05:14AM

7
#836 - Nick Spoon / @be_the_spoon

03/05/2017 at 11:07AM

7
#837 - David Lignell / @davidlignell

03/05/2017 at 05:15PM

7
#838 - Thomas Nelson / @emeraldemon

03/06/2017 at 12:25AM

7
#839 - Daniel Hjelm / @dhjelm

03/07/2017 at 06:13PM

7
#840 - Michael Longerich / @mlongerich

03/08/2017 at 01:25AM