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

3953 active golfers, 10705 entries

Leaderboard (lowest score wins):
9
#3031 - Charles H. Leggett / @cleggett

01/08/2015 at 03:42PM

9
#3032 - Ulysse Carion / @ucarion

01/13/2015 at 03:20AM

9
#3033 - Charles Wu / @Congeec

01/13/2015 at 01:32PM

9
#3034 - guguojie / @kelvinhust

01/14/2015 at 05:43AM

9
#3035 - Raynard, Jordan / @raynard_jordan

01/14/2015 at 01:11PM

9
#3036 - Frederik Schubert / @fschubert

01/15/2015 at 06:24PM

9
#3037 - Vaibhav Bhembre / @neurodrone

01/18/2015 at 01:24PM

9
#3038 - Raingomm / @raingomm

01/19/2015 at 07:11AM

9
#3039 - Jon Kuperman / @jkup

01/19/2015 at 09:02AM

9
#3040 - Arno ℇrpenbeck / @javacgn

01/19/2015 at 09:41AM

9
#3041 - Ry4an Brase / @Ry4an

01/20/2015 at 05:15AM

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

01/20/2015 at 09:31AM

9
#3043 - Ben Blaxill / @BenBlaxill

01/23/2015 at 03:29AM

9
#3044 - Will Nicht / @kein_name_fuer

01/26/2015 at 10:25PM

9
#3045 - Innokenty Mikhailov / @gregolsent

01/28/2015 at 09:43AM

9
#3046 - morphocapics / @morphocapics

02/02/2015 at 01:43PM

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

02/04/2015 at 11:59AM

9
#3048 - Ted Studley / @TedStudley

02/06/2015 at 03:22AM

9
#3049 - Martin Liberg / @marreman

02/08/2015 at 04:56PM

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

02/09/2015 at 01:53PM

9
#3051 - Sri Kadimisetty / @sri

02/10/2015 at 11:40PM

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

02/12/2015 at 06:17AM

9
#3053 - Alex Kitchens / @alexcameron89

02/12/2015 at 08:20PM

9
#3054 - Sean Smith / @SeanSith

02/13/2015 at 10:19PM

9
#3055 - Sebastian / @soapsurfer

02/14/2015 at 10:54AM

9
#3056 - Steven Loria / @sloria1

02/14/2015 at 03:49PM

9
#3057 - Ryan Troxler / @TroxlerRyan

02/17/2015 at 05:27AM

9
#3058 - Thomas Brisbout / @le_briz

02/17/2015 at 02:42PM

9
#3059 - Jon Emord / @JonEmord

02/22/2015 at 11:14PM

9
#3060 - Matthew Jensen / @mrjnox

02/24/2015 at 04:00AM