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
#2941 - Florian Schunk / @rummatee

10/25/2019 at 12:36AM

8
#2942 - Alex Emelianov / @AlexEmelianov3

10/26/2019 at 04:45AM

8
#2943 - harmony_krieg / @harmony_krieg

10/26/2019 at 06:43PM

8
#2944 - dahan / @dahan74265266

10/28/2019 at 12:55PM

8
#2945 - Lory / @Lory46845742

10/31/2019 at 02:39PM

8
#2946 - GrimmT / @GrimmT10

11/01/2019 at 06:25PM

8
#2947 - trafficone / @trafficone

11/02/2019 at 06:17AM

8
#2948 - Tokos Apos / @AposTokosapos

11/05/2019 at 10:52AM

8
#2949 - skamgolf / @skamgolf

11/06/2019 at 02:10AM

8
#2950 - fewfold / @fewfold

11/06/2019 at 02:28AM

8
#2951 - Ebi / @ehan6

11/10/2019 at 01:19PM

8
#2952 - damien / @GreatTestyTest

11/10/2019 at 11:20PM

8
#2953 - kep / @kep20093456

11/12/2019 at 01:04PM

8
#2954 - Lei Kin / @kireinasorakin

11/13/2019 at 04:24AM

8
#2955 - it's yuuu 優雨! / @itisyuuu

11/14/2019 at 01:37PM

8
#2956 - Bruce Adams / @bruceadams1054

11/22/2019 at 02:07AM

8
#2957 - Wouter Horlings / @Achilleshiel

11/22/2019 at 03:01PM

8
#2958 - 李嘉浩 / @isundaylee

11/23/2019 at 02:03AM

8
#2959 - oldandslow / @oldandslow5

11/26/2019 at 08:28AM

8
#2960 - ちくあな / @navcw

11/27/2019 at 04:46PM

8
#2961 - wsg / @wsg31986835

11/29/2019 at 11:19AM

8
#2962 - alibabadienstaccount / @alibabadiensta1

11/29/2019 at 12:53PM

8
#2963 - Przemysław Michalak / @dambusio

11/30/2019 at 09:24AM

8
#2964 - Nil / @nilnoone

12/02/2019 at 12:48PM

8
#2965 - Marten Ringwelski / @Marteon27

12/07/2019 at 06:08PM

8
#2966 - Andrei Popescu / @AndreiTheory

12/09/2019 at 05:32PM

8
#2967 - Jason Neylon / @jasonneylon

12/17/2019 at 07:14PM

8
#2968 - Simon / @Simon79318261

12/18/2019 at 09:26PM

8
#2969 - 坪井和成 / @dadasutasudadas

12/20/2019 at 06:17AM

8
#2970 - James Casey / @hanavi

12/20/2019 at 11:37PM