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
#2911 - Masi Valkonen / @masivalkonen

08/28/2019 at 07:06AM

8
#2912 - Brice Letcher / @bricoletc

08/30/2019 at 07:54PM

8
#2913 - theBecwar / @thebecwar

08/31/2019 at 11:29AM

8
#2914 - Christian / @paierlep

08/31/2019 at 07:48PM

8
#2915 - Kjaku / @Kondziorf

09/04/2019 at 07:58PM

8
#2916 - Ralph / @Ralph59017303

09/08/2019 at 09:46AM

8
#2917 - Zach Ingbretsen / @ZIngbretsen

09/08/2019 at 11:06PM

8
#2918 - Abnermtj / @Abnerjr19

09/09/2019 at 03:43AM

8
#2919 - averageRandomPerson / @averageRandomP1

09/09/2019 at 10:09PM

8
#2920 - yesuu / @yesuu15

09/10/2019 at 02:12PM

8
#2921 - Alan Martins Silva / @alanfortlink

09/12/2019 at 07:14PM

8
#2922 - Ralph Callaway / @RalphAtCCC

09/14/2019 at 07:02AM

8
#2923 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 05:57PM

8
#2924 - majuscule / @majuscule13

09/24/2019 at 09:06PM

8
#2925 - Lorenzo Bertolino / @lo_bertolino

09/25/2019 at 03:42PM

8
#2926 - Jonathan Lozinski / @jlozinski

09/27/2019 at 07:43AM

8
#2927 - cínicoycansino / @pgv958

09/27/2019 at 01:45PM

8
#2928 - Miko / @_m_ik_o_

09/27/2019 at 08:41PM

8
#2929 - brypto / @hiimbenjy

09/30/2019 at 10:18PM

8
#2930 - Rui Xue / @ruirayxue

10/01/2019 at 03:23AM

8
#2931 - Alexander L. / @Lexol4s

10/01/2019 at 07:21PM

8
#2932 - equinox / @equinox81436545

10/06/2019 at 02:37PM

8
#2933 - Marek674512 / @marek674512

10/11/2019 at 10:55AM

8
#2934 - Cillian Berragan / @cjberragan

10/11/2019 at 09:48PM

8
#2935 - Sam O'Malley / @Samuel_OMalley

10/12/2019 at 03:52AM

8
#2936 - ErQ325 / @EQ325

10/14/2019 at 01:52AM

8
#2937 - Jonathan Medwig / @jmedwig

10/16/2019 at 12:10PM

8
#2938 - Homo Ludens / @BsMainly

10/18/2019 at 08:06AM

8
#2939 - 佐藤一郎 / @higeojioji

10/24/2019 at 04:25PM

8
#2940 - jeremy / @jeremy67339762

10/24/2019 at 06:59PM