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

4214 active golfers, 11496 entries

Leaderboard (lowest score wins):
8
#2611 - Paul Draghicescu / @pdragy

03/22/2018 at 05:45AM

8
#2612 - David Pimentel / @daveypimentel

03/22/2018 at 09:46PM

8
#2613 - Tim Boooo-ckley 👻 / @timbucki

03/23/2018 at 01:39AM

8
#2614 - DQMSL対戦募集ツイートbot / @foronlinegamer

03/23/2018 at 06:44AM

8
#2615 - Plósz Péter / @ploszpe

03/23/2018 at 09:35PM

8
#2616 - gerry / @ggaonag

03/29/2018 at 10:19PM

8
#2617 - Ted Carlsson / @TedCarlsson

03/31/2018 at 10:36PM

8
#2618 - 서강훈 / @shirano150

04/02/2018 at 08:16AM

8
#2619 - Fichera Gaetano / @gaetanofic

04/05/2018 at 03:18PM

8
#2620 - Marcos Almeida / @almeidamarcos_

04/08/2018 at 10:41AM

8
#2621 - DHM / @DHM29978992

04/09/2018 at 07:31PM

8
#2622 - Yigit Sever / @_yigitsever

04/10/2018 at 09:41PM

8
#2623 - Adigan / @Addigan

04/12/2018 at 10:06AM

8
#2624 - Yuki Sato / @yukibear_dev

04/24/2018 at 08:32AM

8
#2625 - Vanda Hendrychová / @vandiacutek

04/24/2018 at 03:23PM

8
#2626 - jet / @jameslintaylor

04/26/2018 at 01:30AM

8
#2627 - Felipe Jacob / @FfJacob

04/26/2018 at 05:57AM

8
#2628 - Alex Budilovsky / @alexbudy

05/02/2018 at 01:06AM

8
#2629 - rg thomas / @rgt47

05/03/2018 at 03:51AM

8
#2630 - Daniel Liu / @idanieliu

05/03/2018 at 05:04AM

8
#2631 - autological_being / @metaporias

05/03/2018 at 05:42PM

8
#2632 - Micah Halter / @mehalter

05/03/2018 at 07:14PM

8
#2633 - Walerian Sobczak / @walerian777

05/04/2018 at 10:14AM

8
#2634 - Cosmic Frog / @Cozmicfrog

05/04/2018 at 10:25AM

8
#2635 - Luke Lee / @luke0201

05/05/2018 at 08:24AM

8
#2636 - Bimal Gaudel / @BimalGaudel

05/05/2018 at 03:50PM

8
#2637 - frank p / @icedearth55

05/05/2018 at 06:27PM

8
#2638 - Quade Morrison / @quade_morrison

05/07/2018 at 12:12AM

8
#2639 - . / @ningOTI

05/07/2018 at 01:43AM

8
#2640 - MarinAkaFulk / @MarinAkaFulk

05/08/2018 at 08:44AM