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
#3451 - Sanjay / @patelsan

06/19/2016 at 03:49PM

9
#3452 - Jan Feindt / @hun_knee

06/23/2016 at 01:10PM

9
#3453 - malet / @Malet

06/23/2016 at 01:50PM

9
#3454 - Stephan Bugnon / @stephanbugnon

06/23/2016 at 04:05PM

9
#3455 - Yifan Ge / @gyifan

06/23/2016 at 07:37PM

9
#3456 - Edvin (Bait) / @EdvinOlofsson92

06/28/2016 at 10:52AM

9
#3457 - Amory Schlender / @schlamory

07/08/2016 at 05:21AM

9
#3458 - Jonathan Werner / @jonathanewerner

07/09/2016 at 04:28PM

9
#3459 - Ilker Mutlu / @ilkermutlu

07/12/2016 at 02:31PM

9
#3460 - Dan Madden / @guthran

07/15/2016 at 01:32PM

9
#3461 - Christopher Fujino / @chrisfujino

07/16/2016 at 02:51AM

9
#3462 - curist / @curist

07/26/2016 at 03:27AM

9
#3463 - CoffeeIntoCode / @_coffeeintocode

08/04/2016 at 04:30PM

9
#3464 - Ratmonkey / @Ratm0nkey

08/04/2016 at 08:33PM

9
#3465 - Richard Laub / @RWLaub91

08/07/2016 at 05:41AM

9
#3466 - amospalla / @amospalla

08/11/2016 at 03:47PM

9
#3467 - davidcgv / @davidcgv

08/11/2016 at 10:02PM

9
#3468 - Ewoud Smeur / @Ewoud90

08/22/2016 at 09:17PM

9
#3469 - Ardi / @e_maniacs

09/01/2016 at 06:45AM

9
#3470 - Koudougou / @OpenPatate

09/23/2016 at 02:24PM

9
#3471 - Christophe Perrotin / @ChrisPerSurTwit

09/24/2016 at 04:17PM

9
#3472 - Kevin Ilphrin Pellet / @Kilphrin

10/05/2016 at 09:51PM

9
#3473 - Joël Christ / @jjlchrist

10/07/2016 at 01:25PM

9
#3474 - Дмитрий Кремез / @dima_kremez

10/16/2016 at 06:48PM

9
#3475 - Mark Dawson / @drmarkdawson

10/24/2016 at 09:14PM

9
#3476 - Shmelev Jaroslav / @hummelchen0

10/30/2016 at 12:06PM

9
#3477 - timerella® / @timerella

11/16/2016 at 08:41PM

9
#3478 - holy_sin / @0zero0

12/09/2016 at 07:37AM

9
#3479 - Pablo Fonseca / @pablobfonseca

12/15/2016 at 08:43PM

9
#3480 - Pretty big deal / @calvinhp

01/04/2017 at 01:37PM