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
#2641 - Sam Kim / @samkimhis

10/12/2018 at 09:23PM

8
#2642 - Juan / @jubujjamer

10/16/2018 at 03:28AM

8
#2643 - Dax / @daaawx

10/16/2018 at 03:42PM

8
#2644 - Grant Gonyer / @grantgonyer

10/18/2018 at 05:16PM

8
#2645 - Sxcy / @SxcyX

10/22/2018 at 08:00PM

8
#2646 - pebra / @pebrabb

10/22/2018 at 08:30PM

8
#2647 - Adam / @askoufish

10/23/2018 at 05:17AM

8
#2648 - Pak Wing / @_Pak_Wing_

10/24/2018 at 05:00PM

8
#2649 - vimgolfer1234 / @vimgolfer12342

10/25/2018 at 12:31AM

8
#2650 - Jo / @Jo59893132

10/25/2018 at 06:06AM

8
#2651 - Dave Brda / @BrdaDave

10/25/2018 at 07:35PM

8
#2652 - Dima Matrohin / @wo_ogy

10/25/2018 at 10:24PM

8
#2653 - Jules / @namebrandloser

10/26/2018 at 09:26PM

8
#2654 - ary31415 / @ary31415

10/29/2018 at 07:46AM

8
#2655 - Youm / @Youmslinky

10/30/2018 at 11:24PM

8
#2656 - Max / @bionic_pi

11/01/2018 at 01:58AM

8
#2657 - dorpo / @dorpo2

11/01/2018 at 05:28PM

8
#2658 - Kasparas Lavrukaitis / @kaslvr

11/01/2018 at 06:38PM

8
#2659 - Leandro / @leandro_solidum

11/02/2018 at 10:26PM

8
#2660 - Chris Maher / @chrismaherthe

11/15/2018 at 02:15AM

8
#2661 - LucaSimplon / @LucaSimplon

11/16/2018 at 08:57AM

8
#2662 - Levi Self / @LeviRSelf

11/18/2018 at 08:44AM

8
#2663 - Homer Simp12586 / @simp12586

11/18/2018 at 06:38PM

8
#2664 - Commi / @hellocommi

11/24/2018 at 03:44AM

8
#2665 - PJ Frazer / @pj_frazer

11/24/2018 at 10:36PM

8
#2666 - faisal / @faisalhackshah

11/25/2018 at 01:58AM

8
#2667 - timonegk / @timonegk

11/26/2018 at 01:31PM

8
#2668 - 张君杰 / @MYHQlDfwOuLvlGf

12/03/2018 at 07:33AM

8
#2669 - Angry Dev / @AngryDev7

12/03/2018 at 10:08PM

8
#2670 - Rossi / @mrossinek

12/05/2018 at 06:24PM