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

3357 active golfers, 8983 entries

Leaderboard (lowest score wins):
7
#601 - John Corcoran / @JohnJ_Corcoran

03/19/2016 at 01:16PM

7
#602 - Dimitrije Juras / @sinemitre

03/19/2016 at 06:39PM

7
#603 - Jonathan Taylor / @Jonyonson

03/19/2016 at 10:03PM

7
#604 - tullie / @tulliemurrell

03/20/2016 at 02:59PM

7
#605 - 7r6a2l / @7r6a2l

03/23/2016 at 08:16PM

7
#606 - Corsin Pfister / @corsin_pfister

03/24/2016 at 07:41PM

7
#607 - JinHwan Choi / @jinhwanlazy

03/26/2016 at 06:26AM

7
#608 - [onion] chesse / @onion_chesse

03/29/2016 at 12:27AM

7
#609 - Evan Moore / @etmoore

04/02/2016 at 03:04AM

7
#610 - Alex Ch / @_AlexCh_

04/03/2016 at 10:41PM

7
#611 - Niru Maheswaranathan / @niru_m

04/04/2016 at 05:15AM

7
#612 - Matteo Signer / @MatteoSigner

04/10/2016 at 09:19PM

7
#613 - Rufus Cable / @ThreeBytesFull

04/14/2016 at 11:19AM

7
#614 - S O / @strangelooperer

04/17/2016 at 01:24PM

7
#615 - Hank Chinaski / @uktechman

04/22/2016 at 10:51AM

7
#616 - Marco Gentili / @mgentili2

04/24/2016 at 02:43PM

7
#617 - onedayrex / @onedayzns

04/26/2016 at 01:29PM

7
#618 - Hoang Tran / @hoangtx_master

04/29/2016 at 04:28PM

7
#619 - Adam Leach / @qazwsxal

04/30/2016 at 10:53AM

7
#620 - Bob Boberson / @BobersonBob7

05/02/2016 at 11:09AM

7
#621 - Joe Searle / @artouk

05/02/2016 at 02:31PM

7
#622 - Yudi Matsuzake / @yudimatsuzake

05/02/2016 at 03:13PM

7
#623 - Daniel Latzer / @tournqat

05/02/2016 at 04:22PM

7
#624 - Luke Powell / @luxgladius

05/02/2016 at 04:45PM

7
#625 - Joseph Barratt / @josephmbarratt

05/02/2016 at 09:14PM

7
#626 - John Goes / @johnwgoes

05/03/2016 at 06:56AM

7
#627 - alex / @4lex

05/04/2016 at 01:59AM

7
#628 - T. Sakuma / @taku39

05/05/2016 at 04:18AM

7
#629 - iikieh / @iikieh

05/07/2016 at 05:43AM

7
#630 - iNaKoll / @iNaKoll

05/07/2016 at 07:58PM