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

4214 active golfers, 11496 entries

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

06/30/2018 at 09:54AM

8
#2672 - Xxax / @Xxax

07/02/2018 at 11:14AM

8
#2673 - Tom ten Thij / @eco_coder

07/03/2018 at 08:33AM

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

07/05/2018 at 04:01AM

8
#2675 - xarfg / @xarphg

07/06/2018 at 09:24AM

8
#2676 - rhys ormond / @rhysormond

07/08/2018 at 07:22AM

8
#2677 - Torsten Hendrich / @TorstenHendrich

07/09/2018 at 01:07PM

8
#2678 - Yasu Flores / @YasuFlores

07/10/2018 at 04:11AM

8
#2679 - Francesco Sacchi / @depsir

07/14/2018 at 02:27PM

8
#2680 - qed / @qed13308565

07/24/2018 at 04:39PM

8
#2681 - Jakub Tesárek / @JakubTesarek

07/25/2018 at 07:33AM

8
#2682 - Jakub Jasiński / @jakub__jasinski

07/25/2018 at 06:17PM

8
#2683 - yqu212 / @yqu212

07/26/2018 at 01:50PM

8
#2684 - Paul Inc / @hiniol1982

07/27/2018 at 04:06PM

8
#2685 - Shea Munion / @sheamunion

07/27/2018 at 09:13PM

8
#2686 - fucus / @fishlovebanana

07/28/2018 at 09:47AM

8
#2687 - Ian Webster / @iwebst

07/28/2018 at 06:52PM

8
#2688 - Hunter Tidwell / @hunter2tidwell

08/01/2018 at 12:59AM

8
#2689 - Juan Pablo Sarmiento / @PabloSarmiento

08/01/2018 at 01:06AM

8
#2690 - Vinh tran / @Catasaurrr

08/01/2018 at 01:08AM

8
#2691 - chaotic / @laersn

08/02/2018 at 01:13PM

8
#2692 - Foo Bar / @FooBarely

08/04/2018 at 06:15PM

8
#2693 - Jack Magnus / @jadomag

08/04/2018 at 06:29PM

8
#2694 - BanyRule / @BanyRule

08/05/2018 at 02:03PM

8
#2695 - luzzyzhang / @luzzyzhang

08/08/2018 at 12:24PM

8
#2696 - maxime he / @he_maxime

08/11/2018 at 02:25PM

8
#2697 - Marco Magdy / @marcomacdee

08/13/2018 at 09:10PM

8
#2698 - Frank Korf / @OMGFrank

08/16/2018 at 01:38PM

8
#2699 - Mahesh Ramchandani / @m_sharp

08/16/2018 at 06:00PM

8
#2700 - Ano Nym / @AnoNym39473378

08/18/2018 at 01:41PM