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

3950 active golfers, 10694 entries

Leaderboard (lowest score wins):
8
#2581 - sspan / @sspantz

06/30/2018 at 09:54AM

8
#2582 - Xxax / @Xxax

07/02/2018 at 11:14AM

8
#2583 - Tom ten Thij / @eco_coder

07/03/2018 at 08:33AM

8
#2584 - 赤佐田奈葉 / @akasatanaha_

07/05/2018 at 04:01AM

8
#2585 - xarfg / @xarphg

07/06/2018 at 09:24AM

8
#2586 - rhys ormond / @rhysormond

07/08/2018 at 07:22AM

8
#2587 - Torsten Hendrich / @TorstenHendrich

07/09/2018 at 01:07PM

8
#2588 - Yasu Flores / @YasuFlores

07/10/2018 at 04:11AM

8
#2589 - Francesco Sacchi / @depsir

07/14/2018 at 02:27PM

8
#2590 - qed / @qed13308565

07/24/2018 at 04:39PM

8
#2591 - Jakub Tesárek / @JakubTesarek

07/25/2018 at 07:33AM

8
#2592 - Jakub Jasiński / @jakub__jasinski

07/25/2018 at 06:17PM

8
#2593 - yqu212 / @yqu212

07/26/2018 at 01:50PM

8
#2594 - Paul Inc / @hiniol1982

07/27/2018 at 04:06PM

8
#2595 - Shea Munion / @sheamunion

07/27/2018 at 09:13PM

8
#2596 - fucus / @fishlovebanana

07/28/2018 at 09:47AM

8
#2597 - Ian Webster / @iwebst

07/28/2018 at 06:52PM

8
#2598 - Hunter Tidwell / @hunter2tidwell

08/01/2018 at 12:59AM

8
#2599 - Juan Pablo Sarmiento / @PabloSarmiento

08/01/2018 at 01:06AM

8
#2600 - Vinh tran / @Catasaurrr

08/01/2018 at 01:08AM

8
#2601 - chaotic / @laersn

08/02/2018 at 01:13PM

8
#2602 - Foo Bar / @FooBarely

08/04/2018 at 06:15PM

8
#2603 - Jack Magnus / @jadomag

08/04/2018 at 06:29PM

8
#2604 - BanyRule / @BanyRule

08/05/2018 at 02:03PM

8
#2605 - luzzyzhang / @luzzyzhang

08/08/2018 at 12:24PM

8
#2606 - maxime he / @he_maxime

08/11/2018 at 02:25PM

8
#2607 - Marco Magdy / @marcomacdee

08/13/2018 at 09:10PM

8
#2608 - Frank Korf / @OMGFrank

08/16/2018 at 01:38PM

8
#2609 - Mahesh Ramchandani / @m_sharp

08/16/2018 at 06:00PM

8
#2610 - Ano Nym / @AnoNym39473378

08/18/2018 at 01:41PM