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

10/25/2019 at 12:36AM

8
#2852 - Alex Emelianov / @AlexEmelianov3

10/26/2019 at 04:45AM

8
#2853 - harmony_krieg / @harmony_krieg

10/26/2019 at 06:43PM

8
#2854 - dahan / @dahan74265266

10/28/2019 at 12:55PM

8
#2855 - Lory / @Lory46845742

10/31/2019 at 02:39PM

8
#2856 - GrimmT / @GrimmT10

11/01/2019 at 06:25PM

8
#2857 - trafficone / @trafficone

11/02/2019 at 06:17AM

8
#2858 - Tokos Apos / @AposTokosapos

11/05/2019 at 10:52AM

8
#2859 - skamgolf / @skamgolf

11/06/2019 at 02:10AM

8
#2860 - fewfold / @fewfold

11/06/2019 at 02:28AM

8
#2861 - Ebi / @ehan6

11/10/2019 at 01:19PM

8
#2862 - damien / @GreatTestyTest

11/10/2019 at 11:20PM

8
#2863 - kep / @kep20093456

11/12/2019 at 01:04PM

8
#2864 - Lei Kin / @kireinasorakin

11/13/2019 at 04:24AM

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

11/14/2019 at 01:37PM

8
#2866 - Bruce Adams / @bruceadams1054

11/22/2019 at 02:07AM

8
#2867 - Wouter Horlings / @Achilleshiel

11/22/2019 at 03:01PM

8
#2868 - 李嘉浩 / @isundaylee

11/23/2019 at 02:03AM

8
#2869 - oldandslow / @oldandslow5

11/26/2019 at 08:28AM

8
#2870 - ちくあな / @navcw

11/27/2019 at 04:46PM

8
#2871 - wsg / @wsg31986835

11/29/2019 at 11:19AM

8
#2872 - alibabadienstaccount / @alibabadiensta1

11/29/2019 at 12:53PM

8
#2873 - Przemysław Michalak / @dambusio

11/30/2019 at 09:24AM

8
#2874 - Nil / @nilnoone

12/02/2019 at 12:48PM

8
#2875 - Marten Ringwelski / @Marteon27

12/07/2019 at 06:08PM

8
#2876 - Andrei Popescu / @AndreiTheory

12/09/2019 at 05:32PM

8
#2877 - Jason Neylon / @jasonneylon

12/17/2019 at 07:14PM

8
#2878 - Simon / @Simon79318261

12/18/2019 at 09:26PM

8
#2879 - 坪井和成 / @dadasutasudadas

12/20/2019 at 06:17AM

8
#2880 - James Casey / @hanavi

12/20/2019 at 11:37PM