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

4144 active golfers, 11289 entries

Leaderboard (lowest score wins):
7
#391 - Andrew D. Wong / @andrewdwong

09/01/2015 at 09:23PM

7
#392 - oscar / @zonza_mas

09/02/2015 at 10:54AM

7
#393 - Sam Grigg / @samgrigg

09/02/2015 at 10:49PM

7
#394 - João Carvalho / @joaoCarvas

09/03/2015 at 02:02PM

7
#395 - Hisco / @francis_vega

09/03/2015 at 03:31PM

7
#396 - Andrew Michaud / @andrewjmichaud

09/03/2015 at 10:48PM

7
#397 - Jonas / @irubataru

09/03/2015 at 11:25PM

7
#398 - Aleksey N. / @nag5001

09/05/2015 at 05:26PM

7
#399 - g10181255 / @g10181255

09/07/2015 at 08:38PM

7
#400 - Irina Crystal / @irina_crystal

09/08/2015 at 01:44PM

7
#401 - Tamas Gal (Tom) / @tamasgal

09/10/2015 at 05:37AM

7
#402 - Jonathan Crossley / @_jcrossley

09/11/2015 at 02:01AM

7
#403 - Jiří Chára / @JiriChara

09/11/2015 at 07:59AM

7
#404 - Paul / @CygnusX1985

09/11/2015 at 09:55AM

7
#405 - Sebastien Charret / @SCharret

09/11/2015 at 02:59PM

7
#406 - Joey / @joeyism101

09/11/2015 at 10:45PM

7
#407 - DamienVGN / @DamienVGN

09/12/2015 at 06:15PM

7
#408 - 0e4ef622 / @0e4ef622

09/13/2015 at 01:23PM

7
#409 - Jonathan Skeate / @jskeate

09/14/2015 at 01:01PM

7
#410 - Alexander Pankratov / @nonuBKy

09/15/2015 at 01:53PM

7
#411 - Slimior / @Slimior

09/15/2015 at 02:24PM

7
#412 - PL / @petrlaitoch

09/15/2015 at 10:04PM

7
#413 - Kevin Merlin / @mp3merlin

09/16/2015 at 03:58PM

7
#414 - Emil Styrke / @EStyrke

09/18/2015 at 01:02PM

7
#415 - Afonso Matos / @afonsolfm

09/18/2015 at 08:11PM

7
#416 - Paulo H Baumann / @PauloBaumann

09/20/2015 at 06:09PM

7
#417 - Douglas Perrin / @Deznormal

09/20/2015 at 11:02PM

7
#418 - Dan Bee / @HIYARR

09/23/2015 at 02:10AM

7
#419 - 浮云总是梦 / @cloudisdream

09/24/2015 at 06:58AM

7
#420 - Walker Boh / @walker_boh

09/25/2015 at 12:18PM