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

4213 active golfers, 11494 entries

Leaderboard (lowest score wins):
9
#3301 - Martijn Theunissen / @Martijn_______

04/21/2015 at 06:09PM

9
#3302 - Stefan Knudsen / @knud32

04/25/2015 at 04:34AM

9
#3303 - Brian Olpin / @bolpin

04/28/2015 at 09:35PM

9
#3304 - Rolf / @liffon

04/29/2015 at 06:02AM

9
#3305 - montalvoMiguel / @imontalvomiguel

04/29/2015 at 07:06AM

9
#3306 - Gael Roue / @gaelroue

05/02/2015 at 01:52PM

9
#3307 - Daniel Allen Deutsch / @cmmn_nighthawk

05/04/2015 at 10:22PM

9
#3308 - Matthias Bilger / @m4n2b

05/06/2015 at 07:31AM

9
#3309 - Joseph Roberts / @joey9801

05/06/2015 at 12:28PM

9
#3310 - Chris Trombley / @ctrombley

05/06/2015 at 11:00PM

9
#3311 - たんたる / @tantal_mech

05/06/2015 at 11:53PM

9
#3312 - Markus Krallinger / @markuskrall

05/07/2015 at 10:32AM

9
#3313 - m a c s f / @macsf

05/07/2015 at 01:56PM

9
#3314 - Formally Dallin / @FormallyDallin

05/07/2015 at 10:56PM

9
#3315 - Ivan Kasatenko / @sky31338

05/09/2015 at 04:11PM

9
#3316 - Steve Gibson / @thegiblet75

05/11/2015 at 02:21PM

9
#3317 - Chris / @crr0004

05/12/2015 at 07:58AM

9
#3318 - Chris Gardner / @t00manybananas

05/12/2015 at 09:45PM

9
#3319 - 𝗕 𝗥 𝗜 𝗧 𝗧 | HomeConf 2020 / @demophoon

05/13/2015 at 04:11PM

9
#3320 - Matthew Rudy Jacobs / @matthewrudy

05/15/2015 at 06:49AM

9
#3321 - GENERAL LOLIKORE / @threv

05/18/2015 at 03:16AM

9
#3322 - Simon Rycroft / @dev4rent

05/19/2015 at 01:46PM

9
#3323 - Oliver Friedrich / @slith76

05/21/2015 at 07:51PM

9
#3324 - superbriscoe / @superbriscoe

05/22/2015 at 01:28PM

9
#3325 - Alex Nussey / @AlexNussey

05/22/2015 at 06:15PM

9
#3326 - Xinyue Chen / @XinyueChen_HRT

05/24/2015 at 02:53AM

9
#3327 - Gabriel Florit / @gabrielflorit

05/24/2015 at 01:50PM

9
#3328 - Klemen Košir / @KarboniteKream

05/26/2015 at 01:25PM

9
#3329 - Robert Robertson / @RobertC3228687

05/27/2015 at 06:21PM

9
#3330 - Peter J. Foti / @peterjfoti

05/31/2015 at 03:08AM