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

4232 active golfers, 11546 entries

Leaderboard (lowest score wins):
8
#3211 - KoroneListener / @KoroneListener

09/04/2024 at 01:52PM

8
#3212 - ydc123 / @ydc123

09/17/2024 at 10:42AM

8
#3213 - Adi / @adi2004

09/21/2024 at 08:25PM

8
#3214 - Neix20 / @Neix20

09/26/2024 at 03:08AM

8
#3215 - Anton de Regt / @antonderegt

10/27/2024 at 06:48PM

8
#3216 - Leo / @Leoduck

10/29/2024 at 01:44AM

8
#3217 - Alexander Weers / @aweers

10/30/2024 at 10:16PM

8
#3218 - Brice Bischoff / @B-Bischoff

11/07/2024 at 09:07AM

8
#3219 - 🥚 / @schmarles_

11/10/2024 at 10:18PM

8
#3220 - Pim / @Pireax

11/11/2024 at 12:41AM

8
#3221 - Pablo Acuna / @pacuna

11/28/2024 at 02:28AM

8
#3222 - Kumaran / @kumaran-14

12/03/2024 at 11:14PM

8
#3223 - Magnus Wahlstrand / @magnuswahlstrand

12/25/2024 at 08:06AM

8
#3224 - Demian Martinez / @demianuco

01/09/2025 at 05:38PM

8
#3225 - martinorav / @martinorav

01/12/2025 at 06:24PM

8
#3226 - Sebastian Bille / @TastefulElk

01/13/2025 at 11:57AM

8
#3227 - JohanNorberg / @JohanNorberg

01/25/2025 at 09:01PM

8
#3228 - Peter Wang / @omgitsabackup

01/28/2025 at 12:38AM

8
#3229 - Akito Sano / @Szkieletor37

03/30/2025 at 12:46PM

8
#3230 - UrbanNinja1010 / @UrbanNinja1010

04/04/2025 at 03:39PM

8
#3231 - Brian Rhees / @brhees

04/24/2025 at 06:35PM

8
#3232 - phaym / @phaym

05/11/2025 at 04:28AM

8
#3233 - Chiaso / @Chikalona

05/20/2025 at 08:01PM

8
#3234 - hwatson381 / @hwatson381

06/18/2025 at 10:16AM

8
#3235 - 803s38p2fi / @803s38p2fi

06/29/2025 at 09:44PM

8
#3236 - Ryan Miller / @RPMiller

07/09/2025 at 11:05PM

8
#3237 - Austin Wood / @indiesquidge

08/08/2025 at 04:38PM

8
#3238 - temur arustashvili / @temurar12

09/29/2025 at 07:41PM

8
#3239 - mutilator630 / @mutilator630

01/15/2026 at 07:03PM

9
#3240 - Tibor Claassen / @codebeige

12/09/2014 at 05:26AM