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

4212 active golfers, 11493 entries

Leaderboard (lowest score wins):
8
#3181 - Neo / @neothetranquil

09/11/2022 at 06:27AM

8
#3182 - ittk / @ittk_dev

10/10/2022 at 01:38AM

8
#3183 - James Marshall / @astrophd

10/21/2022 at 02:57AM

8
#3184 - vimgolfaccfekxh / @vimgolfaccfekxh

10/30/2022 at 09:59PM

8
#3185 - Benjamin / @BenjaminBashar

11/19/2022 at 11:41PM

8
#3186 - @grhkm@infosec.exchange / @grhkm21

12/18/2022 at 07:28PM

8
#3187 - かみひろ / @km_hr

02/18/2023 at 07:11AM

8
#3188 - Иван / @wansmer

04/24/2023 at 03:38PM

8
#3189 - Aayush Aggarwal / @aayush298

05/17/2023 at 04:09AM

8
#3190 - Olivier Bégassat / @zk_evm

06/14/2023 at 07:26PM

8
#3191 - someone / @IKvacenok

07/25/2023 at 09:41PM

8
#3192 - Hans Wurscht / @HansW313

09/15/2023 at 12:12PM

8
#3193 - I hate x why am i here / @IHate7907

10/31/2023 at 07:13PM

8
#3194 - wemgulf / @wemgulfer

11/02/2023 at 01:25PM

8
#3195 - Ciaran / @iamh0ax

11/25/2023 at 08:00PM

8
#3196 - Marius Ropotica / @cipmar

03/30/2024 at 09:17AM

8
#3197 - Gerard Keane / @gerardkeane

05/15/2024 at 02:55PM

8
#3198 - Moojin Chung / @svperstarz

06/07/2024 at 05:28AM

8
#3199 - SanderHestvik / @SanderHestvik

06/16/2024 at 05:48PM

8
#3200 - einferd / @einferd

06/26/2024 at 12:48PM

8
#3201 - Guru Senthil / @gurukoushik

06/27/2024 at 07:40PM

8
#3202 - Giacomo Sansone / @pcineverdies

07/06/2024 at 03:32PM

8
#3203 - mau-mauricelim / @mau-mauricelim

08/22/2024 at 06:30AM

8
#3204 - Prem Netsuwan / @grnnja

08/27/2024 at 01:02PM

8
#3205 - KoroneListener / @KoroneListener

09/04/2024 at 01:52PM

8
#3206 - ydc123 / @ydc123

09/17/2024 at 10:42AM

8
#3207 - Adi / @adi2004

09/21/2024 at 08:25PM

8
#3208 - Neix20 / @Neix20

09/26/2024 at 03:08AM

8
#3209 - Anton de Regt / @antonderegt

10/27/2024 at 06:48PM

8
#3210 - Leo / @Leoduck

10/29/2024 at 01:44AM