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

3950 active golfers, 10694 entries

Leaderboard (lowest score wins):
8
#2821 - Masi Valkonen / @masivalkonen

08/28/2019 at 07:06AM

8
#2822 - Brice Letcher / @bricoletc

08/30/2019 at 07:54PM

8
#2823 - theBecwar / @thebecwar

08/31/2019 at 11:29AM

8
#2824 - Christian / @paierlep

08/31/2019 at 07:48PM

8
#2825 - Kjaku / @Kondziorf

09/04/2019 at 07:58PM

8
#2826 - Ralph / @Ralph59017303

09/08/2019 at 09:46AM

8
#2827 - Zach Ingbretsen / @ZIngbretsen

09/08/2019 at 11:06PM

8
#2828 - Abner jr / @Abnerjr19

09/09/2019 at 03:43AM

8
#2829 - averageRandomPerson / @averageRandomP1

09/09/2019 at 10:09PM

8
#2830 - yesuu / @yesuu15

09/10/2019 at 02:12PM

8
#2831 - Alan Martins Silva / @alanfortlink

09/12/2019 at 07:14PM

8
#2832 - Ralph Callaway / @RalphAtCCC

09/14/2019 at 07:02AM

8
#2833 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 05:57PM

8
#2834 - majuscule / @majuscule13

09/24/2019 at 09:06PM

8
#2835 - Lorenzo Bertolino / @lo_bertolino

09/25/2019 at 03:42PM

8
#2836 - Jonathan Lozinski / @jlozinski

09/27/2019 at 07:43AM

8
#2837 - cínicoycansino / @pgv958

09/27/2019 at 01:45PM

8
#2838 - Miko / @_m_ik_o_

09/27/2019 at 08:41PM

8
#2839 - brypto / @hiimbenjy

09/30/2019 at 10:18PM

8
#2840 - Rui Xue / @ruirayxue

10/01/2019 at 03:23AM

8
#2841 - Alexander L. / @Lexol4s

10/01/2019 at 07:21PM

8
#2842 - equinox / @equinox81436545

10/06/2019 at 02:37PM

8
#2843 - Marek674512 / @marek674512

10/11/2019 at 10:55AM

8
#2844 - Cillian Berragan / @cjberragan

10/11/2019 at 09:48PM

8
#2845 - Sam O'Malley / @Samuel_OMalley

10/12/2019 at 03:52AM

8
#2846 - ErQ325 / @EQ325

10/14/2019 at 01:52AM

8
#2847 - Jonathan Medwig / @jmedwig

10/16/2019 at 12:10PM

8
#2848 - Homo Ludens / @BsMainly

10/18/2019 at 08:06AM

8
#2849 - 佐藤一郎 / @higeojioji

10/24/2019 at 04:25PM

8
#2850 - jeremy / @jeremy67339762

10/24/2019 at 06:59PM