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

4215 active golfers, 11497 entries

Leaderboard (lowest score wins):
9
#3241 - guguojie / @kelvinhust

01/14/2015 at 05:43AM

9
#3242 - Raynard, Jordan / @raynard_jordan

01/14/2015 at 01:11PM

9
#3243 - Frederik Schubert / @fschubert

01/15/2015 at 06:24PM

9
#3244 - Vaibhav Bhembre / @neurodrone

01/18/2015 at 01:24PM

9
#3245 - Raingomm / @raingomm

01/19/2015 at 07:11AM

9
#3246 - Jon Kuperman / @jkup

01/19/2015 at 09:02AM

9
#3247 - Arno ℇrpenbeck / @javacgn

01/19/2015 at 09:41AM

9
#3248 - Ry4an Brase / @Ry4an

01/20/2015 at 05:15AM

9
#3249 - Константин / @xni

01/20/2015 at 09:31AM

9
#3250 - Ben Blaxill / @BenBlaxill

01/23/2015 at 03:29AM

9
#3251 - Will Nicht / @kein_name_fuer

01/26/2015 at 10:25PM

9
#3252 - Innokenty Mikhailov / @gregolsent

01/28/2015 at 09:43AM

9
#3253 - morphocapics / @morphocapics

02/02/2015 at 01:43PM

9
#3254 - Алина Михалькова / @smertskosoi1

02/04/2015 at 11:59AM

9
#3255 - Ted Studley / @TedStudley

02/06/2015 at 03:22AM

9
#3256 - Martin Liberg / @marreman

02/08/2015 at 04:56PM

9
#3257 - ペロリスト / @07151129

02/09/2015 at 01:53PM

9
#3258 - Sri Kadimisetty / @sri

02/10/2015 at 11:40PM

9
#3259 - かっかる / @86ktcal

02/12/2015 at 06:17AM

9
#3260 - Alex Kitchens / @alexcameron89

02/12/2015 at 08:20PM

9
#3261 - Sean Smith / @SeanSith

02/13/2015 at 10:19PM

9
#3262 - Sebastian / @soapsurfer

02/14/2015 at 10:54AM

9
#3263 - Steven Loria / @sloria1

02/14/2015 at 03:49PM

9
#3264 - Ryan Troxler / @TroxlerRyan

02/17/2015 at 05:27AM

9
#3265 - Thomas Brisbout / @le_briz

02/17/2015 at 02:42PM

9
#3266 - Jon Emord / @JonEmord

02/22/2015 at 11:14PM

9
#3267 - Matthew Jensen / @mrjnox

02/24/2015 at 04:00AM

9
#3268 - Simon Mullis / @smullis

02/24/2015 at 05:21PM

9
#3269 - Hugues de Lassus / @HuguesdeLassus

02/26/2015 at 01:01PM

9
#3270 - Mike Marion / @mikejmarion

02/26/2015 at 04:18PM