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
#2731 - Abe Cede / @A_be_Cede

04/12/2019 at 09:06AM

8
#2732 - Olivier Moindrot / @OlivierMoindrot

04/17/2019 at 01:44PM

8
#2733 - Rand Omperson / @197258444

04/17/2019 at 07:10PM

8
#2734 - Gitsnik / @dracyrys

04/19/2019 at 11:27AM

8
#2735 - Rob Pilling / @bobrippling

04/26/2019 at 09:18AM

8
#2736 - 김현수 / @flyhigh43

04/27/2019 at 06:29PM

8
#2737 - EliTheCoder / @elithecoder

04/30/2019 at 04:21PM

8
#2738 - R / @rvan3210

05/01/2019 at 04:45AM

8
#2739 - Sherab Giovannini / @shaddycls

05/01/2019 at 05:07PM

8
#2740 - micchie ʕ•ᴥ•ʔ / @micchiebear

05/03/2019 at 05:01AM

8
#2741 - Janek Szynal / @rrszynka

05/04/2019 at 08:49PM

8
#2742 - Arno / @arnoxmp

05/08/2019 at 08:26PM

8
#2743 - heppen / @heppen_He

05/10/2019 at 09:09AM

8
#2744 - chihiro / @chihiro0940

05/10/2019 at 02:51PM

8
#2745 - vimgolfer24271 / @vimgolfer24271

05/11/2019 at 12:41PM

8
#2746 - nvb46c74f8ih / @nvb46c74f8ih

05/12/2019 at 09:31AM

8
#2747 - arsi arola / @mos_kiitto

05/15/2019 at 12:15PM

8
#2748 - Daniel Hakimian / @danrafhak

05/15/2019 at 03:21PM

8
#2749 - Joseph A Shalabi / @JosephShalabi

05/15/2019 at 11:46PM

8
#2750 - Lingyu Yi / @LgxLingyu

05/16/2019 at 02:37AM

8
#2751 - ささ / @nick11033

05/16/2019 at 11:41AM

8
#2752 - Leiser Fernández / @leiserfg

05/19/2019 at 04:53PM

8
#2753 - Nick Yeow / @nickyeow

05/21/2019 at 03:17PM

8
#2754 - alexandrasou / @alexandrasou2

05/22/2019 at 11:53AM

8
#2755 - Luis Copetti / @lhcopetti

05/23/2019 at 01:39AM

8
#2756 - aggums / @touhoueurobeat

05/26/2019 at 05:39AM

8
#2757 - shaz / @shaz30307204

05/28/2019 at 11:20AM

8
#2758 - Дима / @dimkino

05/29/2019 at 09:51PM

8
#2759 - sitadivon / @sitadivon1

05/30/2019 at 01:21AM

8
#2760 - Lie Ryan / @lieryan

05/31/2019 at 09:22AM