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

3213 active golfers, 8583 entries

Leaderboard (lowest score wins):
7
#541 - Mirko Grönroos / @hermo

01/06/2016 at 11:07AM

7
#542 - jackliusr / @jackliusr

01/07/2016 at 07:42AM

7
#543 - Alan Kang / @alankang

01/07/2016 at 09:22AM

7
#544 - Evgeny`s Kindle / @EvgenyKindle

01/07/2016 at 11:27PM

7
#545 - Nathan Merrill / @natedickmerrill

01/08/2016 at 06:12AM

7
#546 - Joseph J. Piché / @jjpiche

01/08/2016 at 10:26PM

7
#547 - hen don / @hendon112

01/09/2016 at 02:18AM

7
#548 - Roberto Carraretto / @robcarraretto

01/09/2016 at 12:37PM

7
#549 - Robert Clark / @rsclark2

01/09/2016 at 04:00PM

7
#550 - Adrian Roston / @akroston

01/11/2016 at 08:59AM

7
#551 - Sergey Fedorov / @Shade30

01/13/2016 at 06:42AM

7
#552 - Jasbir Singh / @jasbirsingh11

01/16/2016 at 04:15PM

7
#553 - Morgan / @Mszy_

01/19/2016 at 11:08AM

7
#554 - Tim Suchanek / @TimSuchanek

01/22/2016 at 04:31PM

7
#555 - Ryan Morton / @thenerdscribe

01/22/2016 at 11:00PM

7
#556 - andrialexandrou / @io_andri

01/23/2016 at 09:55PM

7
#557 - Hawk Newton / @hawknewton

01/26/2016 at 01:26AM

7
#558 - Jonas Jakobsen / @nemauen

01/26/2016 at 06:03PM

7
#559 - Elgaoussi Hamza / @Elgaoussi

01/27/2016 at 07:48PM

7
#560 - Joy Gao / @joygao

01/28/2016 at 09:42PM

7
#561 - Chris Elston / @CAElston

01/30/2016 at 12:01AM

7
#562 - Sassan Haradji / @sassanh

01/30/2016 at 06:43AM

7
#563 - eozd / @e_ozd

01/31/2016 at 08:21AM

7
#564 - Sheapel User / @sheapeluser

02/01/2016 at 12:52PM

7
#565 - John Traji / @JTraji

02/02/2016 at 08:56PM

7
#566 - Darren Burgess / @DarrenBurgess

02/03/2016 at 02:03AM

7
#567 - Thijs van den Anker / @thijsvdanker

02/04/2016 at 08:34AM

7
#568 - Futankamon / @futankamon

02/08/2016 at 03:16PM

7
#569 - Mars Tener / @mars_yeah

02/08/2016 at 11:15PM

7
#570 - Guirec CORBEL / @GuirecCorbel

02/10/2016 at 10:27PM