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

4196 active golfers, 11448 entries

Leaderboard (lowest score wins):
7
#571 - Michael Buckley / @apolatg

02/11/2016 at 02:09AM

7
#572 - Mathias Andersson / @Wraul

02/13/2016 at 06:23PM

7
#573 - Drenn / @drenn9

02/17/2016 at 09:02PM

7
#574 - Robert Mosher / @rcmosher

02/18/2016 at 12:34AM

7
#575 - John Finn / @johnvfinn7

02/19/2016 at 09:51AM

7
#576 - Askhat Sakhabiev / @Sakhabiev_Ashat

02/19/2016 at 12:23PM

7
#577 - Xiaocan Li / @XiaocanLi

02/20/2016 at 06:04AM

7
#578 - Northern Floats / @northernfloats

02/21/2016 at 05:14PM

7
#579 - xyd / @emc2314

02/22/2016 at 11:52AM

7
#580 - zane hitchcox / @zwhitchcox

02/24/2016 at 04:09PM

7
#581 - hardaudit / @hardaudit

02/26/2016 at 01:14PM

7
#582 - Joseph Abrahams / @josephabrahams

02/26/2016 at 06:55PM

7
#583 - Jaron Hamlik / @jdhamlik

02/27/2016 at 02:31AM

7
#584 - aestetix / @aestetix

02/27/2016 at 01:14PM

7
#585 - Daniel / @danielpie92

02/27/2016 at 08:27PM

7
#586 - Ralf Haffa / @fatslo

02/27/2016 at 09:45PM

7
#587 - Oleg Kravchenko / @olegkravchenk10

02/28/2016 at 08:50AM

7
#588 - Michael Potter / @MicLeviPotter

03/02/2016 at 06:26PM

7
#589 - Sean Wilson / @spwilson27

03/02/2016 at 06:50PM

7
#590 - Charles Laber-Smith / @clabersmith

03/03/2016 at 01:12AM

7
#591 - glepha / @glepha_vim

03/04/2016 at 03:15AM

7
#592 - Sébastien Vincent / @shinmei

03/05/2016 at 02:57PM

7
#593 - John Brown / @ThisIsJohnBrown

03/06/2016 at 04:12AM

7
#594 - Barry Haughey / @BarryHaughey

03/06/2016 at 11:15AM

7
#595 - Hao Chen / @Chen_Hao

03/09/2016 at 01:40AM

7
#596 - Joshua Clark / @propjohn

03/10/2016 at 03:27AM

7
#597 - Gabriel Dupras / @SuperFalconMan

03/13/2016 at 05:32PM

7
#598 - Yahyalexandre33 / @yahyalexandre33

03/15/2016 at 12:22AM

7
#599 - Mike G / @MikeG39938619

03/15/2016 at 01:08PM

7
#600 - Калабук Дима / @KalabukDima

03/18/2016 at 07:30PM