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

3872 active golfers, 10445 entries

Leaderboard (lowest score wins):
8
#2101 - j00b00 / @j00b00

07/16/2016 at 09:46PM

8
#2102 - Anatoliy C. / @1602

07/19/2016 at 07:11PM

8
#2103 - kwa / @kwa129

07/20/2016 at 02:05AM

8
#2104 - André Peric Tavares / @andre_peric

07/20/2016 at 04:08PM

8
#2105 - Bran / @brandypix

07/22/2016 at 10:40PM

8
#2106 - Ben Baker-Smith / @Bit_Synthesis

07/23/2016 at 08:48AM

8
#2107 - isaneba / @isaneba

07/25/2016 at 04:13AM

8
#2108 - Thongrapee / @kulaspa2

07/25/2016 at 05:21AM

8
#2109 - Quinn From The Pack / @fuck_saturn

07/25/2016 at 12:02PM

8
#2110 - Imre Kerr / @imre_kerr

07/25/2016 at 12:26PM

8
#2111 - Jeremiah Goyette / @JeremiahGoyette

07/30/2016 at 05:33AM

8
#2112 - Meninx / @_Meninx_

07/30/2016 at 04:08PM

8
#2113 - Sarang Khim / @sarang_khim

08/02/2016 at 11:54PM

8
#2114 - Дмитрий Петров / @dpetrov111

08/03/2016 at 05:21PM

8
#2115 - Herbert S. / @herbertshlong

08/03/2016 at 08:57PM

8
#2116 - George Angelopoulos / @g_usermod

08/04/2016 at 07:36PM

8
#2117 - jn / @j1357924

08/07/2016 at 05:00PM

8
#2118 - Daniel Flanagan / @lytedev

08/09/2016 at 09:03AM

8
#2119 - Josh Samuelson / @JoshSamuelson

08/10/2016 at 02:39AM

8
#2120 - Byron Ellacott / @codebje

08/10/2016 at 02:42AM

8
#2121 - yuri ghensev / @yurighensev

08/10/2016 at 03:49PM

8
#2122 - walwb walwb / @walwby

08/13/2016 at 04:45PM

8
#2123 - Marsellus Wallace / @Marsellus_Walla

08/13/2016 at 09:06PM

8
#2124 - Kai Middleton / @taraindian

08/16/2016 at 06:06PM

8
#2125 - Zdravko Colic / @virtual_key

08/17/2016 at 07:30PM

8
#2126 - Martin Bielik / @MrMadox2

08/17/2016 at 09:02PM

8
#2127 - AODQ / @AODQIG

08/20/2016 at 03:46PM

8
#2128 - Sp3000 / @sp3katron

08/23/2016 at 08:48AM

8
#2129 - Baptiste Vannesson / @Badacadabra

08/23/2016 at 11:26PM

8
#2130 - citaret / @citaret

08/24/2016 at 01:40PM