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

3872 active golfers, 10445 entries

Leaderboard (lowest score wins):
8
#2071 - ba lázs / @sarosbazsi

05/15/2016 at 10:50AM

8
#2072 - Kerry Todyruik / @KTodyruik

05/15/2016 at 11:12PM

8
#2073 - tuck cursed on rerB / @19emtuck

05/26/2016 at 03:16PM

8
#2074 - Thomas Jefferson / @thom_je_ff_sn

05/26/2016 at 09:45PM

8
#2075 - Kenny Lau / @kkkennnny

06/01/2016 at 09:43AM

8
#2076 - Jerome Abela / @Jerome_A

06/01/2016 at 02:56PM

8
#2077 - 白猫(zhu) / @cat2flower

06/03/2016 at 09:43AM

8
#2078 - Alec Newman / @alecnwmn904

06/07/2016 at 09:18PM

8
#2079 - David Devecsery / @devecsery

06/08/2016 at 03:12PM

8
#2080 - Chris Armstrong / @ChrisATweets

06/08/2016 at 07:10PM

8
#2081 - f00b8tr / @f00b8tr5

06/10/2016 at 11:25PM

8
#2082 - Zed Byrne / @ZeByrne

06/13/2016 at 10:23AM

8
#2083 - Robert Basic / @robertbasic

06/14/2016 at 10:50AM

8
#2084 - ijemmy / @ijemmy

06/15/2016 at 04:50PM

8
#2085 - tobyh / @tobyh

06/17/2016 at 04:10AM

8
#2086 - Leavim / @LeavimTain

06/19/2016 at 03:35PM

8
#2087 - Павел Игоревич / @VizierST

06/22/2016 at 12:11AM

8
#2088 - Timothy Caleb Nordlo / @tnordloh

06/23/2016 at 07:59PM

8
#2089 - Reuben Huxley / @missiontocode

06/29/2016 at 01:30AM

8
#2090 - Alex Rod. / @thealex23ro

06/30/2016 at 01:00AM

8
#2091 - Banos / @deep_spoon

06/30/2016 at 11:28AM

8
#2092 - Matthieu avec deux T / @meschatt

06/30/2016 at 01:59PM

8
#2093 - Vincent Lee / @vincentleest

06/30/2016 at 02:04PM

8
#2094 - Noah Gumbert / @Noahrama

07/01/2016 at 04:28AM

8
#2095 - Joel Rosenthal / @joelarosenthal

07/04/2016 at 12:26AM

8
#2096 - Leix b / @leix_b

07/08/2016 at 03:15PM

8
#2097 - 王运 / @640138017

07/11/2016 at 04:23AM

8
#2098 - Anton Pidkuiko / @pidkuiko

07/14/2016 at 08:45AM

8
#2099 - Nat / @ntzm_

07/15/2016 at 11:21AM

8
#2100 - Ryan van Rensburg / @rdvr001

07/16/2016 at 08:20PM