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

4181 active golfers, 11417 entries

Leaderboard (lowest score wins):
7
#121 - supasnashbuhl / @supasnashbuhl

02/06/2015 at 12:28AM

7
#122 - $jeremieP; / @jeremieP

02/06/2015 at 02:49PM

7
#123 - Dave Powell / @d_pow_pow

02/06/2015 at 10:19PM

7
#124 - Kossak / @Kossak_

02/06/2015 at 11:43PM

7
#125 - Adrian / @reblow

02/09/2015 at 12:59PM

7
#126 - Jamie Cox / @coxy1989

02/12/2015 at 12:25AM

7
#127 - Ethan Chan / @metakirby5

02/12/2015 at 01:01AM

7
#128 - Alex Girdler / @zraved

02/12/2015 at 05:06AM

7
#129 - Adam Jimenez / @adamjimenez0

02/12/2015 at 03:50PM

7
#130 - Naseem Al-Naji / @NaseemAlnaji

02/13/2015 at 12:55AM

7
#131 - xieyh11 / @xieyh11

02/13/2015 at 03:29AM

7
#132 - 哆啦比猫 / @cjxgm2

02/13/2015 at 12:02PM

7
#133 - Daniel Rødskog / @daniero

02/14/2015 at 03:32PM

7
#134 - Jakub Kotowski / @jkbkot

02/14/2015 at 04:42PM

7
#135 - David Stensland / @DavidStensland

02/16/2015 at 04:03AM

7
#136 - Laurent Stacul / @stac47

02/17/2015 at 08:48PM

7
#137 - serhii / @balbieko

02/17/2015 at 11:44PM

7
#138 - Der Graddler / @DerGraddler

02/20/2015 at 01:23AM

7
#139 - Yann Moisan / @YannMoisan

02/20/2015 at 12:57PM

7
#140 - Tournami / @Tournami

02/20/2015 at 04:27PM

7
#141 - Seiichi Satomi / @Sewitch7045

02/23/2015 at 02:27PM

7
#142 - Alan Berndt / @bentglasstube

02/23/2015 at 05:08PM

7
#143 - Colac Ionel / @ColacIonel

02/23/2015 at 05:23PM

7
#144 - Jeremie / @jermoer

02/23/2015 at 10:35PM

7
#145 - Ashley Valent / @ashvalent

02/24/2015 at 06:32AM

7
#146 - Felix / @DoubleFelix_

02/24/2015 at 10:56AM

7
#147 - Daniel Pham / @dany_pham

02/24/2015 at 11:31PM

7
#148 - octotep / @octotep

02/25/2015 at 03:52AM

7
#149 - Grayson Wright / @grayson_wright

02/25/2015 at 06:54AM

7
#150 - paulfariello ✏️ / @paulfariello

02/25/2015 at 03:11PM