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

3604 active golfers, 9665 entries

Leaderboard (lowest score wins):
7
#31 - Bellator nobilis / @BNobilis

12/19/2014 at 11:49PM

7
#32 - Boon-Hau Teh / @boondigo

12/20/2014 at 12:39AM

7
#33 - Lucas Groenendaal / @LucasGroenendaa

12/20/2014 at 03:45AM

7
#34 - ゆきみ / @edp02

12/20/2014 at 10:38AM

7
#35 - Alex Foster / @alexjfno1

12/20/2014 at 06:46PM

7
#36 - winterlight / @winterlight4

12/21/2014 at 11:05AM

7
#37 - Poigal Nitish / @poigalnitish

12/22/2014 at 08:29AM

7
#38 - Frank Zhang / @njzyf

12/22/2014 at 09:44AM

7
#39 - ronk the hat / @r000nk

12/24/2014 at 05:30AM

7
#40 - Chanaka Sandaruwan / @ch4n4k4

12/24/2014 at 06:54AM

7
#41 - Ben Bonfil / @benbonfil

12/24/2014 at 06:16PM

7
#42 - みっきー / @mickey19821

12/25/2014 at 09:25AM

7
#43 - Eirik A. Blekesaune / @blacksound

12/25/2014 at 08:58PM

7
#44 - Maximiliano Padulo / @mpadulo

12/25/2014 at 10:03PM

7
#45 - zmo / @guyzmo

12/28/2014 at 07:23PM

7
#46 - Michael Foley / @m1foley

12/29/2014 at 12:56AM

7
#47 - yachi / @yaachi

12/29/2014 at 03:47AM

7
#48 - Pomin Wu / @pm5

12/29/2014 at 05:10AM

7
#49 - juicelink / @juicelink

12/29/2014 at 08:26PM

7
#50 - Jared Meyering / @Jmeyering

12/30/2014 at 06:20AM

7
#51 - Gary Verhaegen / @gaverhae

12/30/2014 at 02:11PM

7
#52 - Jake Worth / @jwworth

12/30/2014 at 06:05PM

7
#53 - Nick Dyer / @nickbdyer

12/31/2014 at 03:01PM

7
#54 - Juan-Lucas Picard / @davidmh

01/01/2015 at 04:54AM

7
#55 - Grisha Pushkov / @readoonly

01/01/2015 at 06:23PM

7
#56 - Pavlo Klets / @p01nt

01/01/2015 at 10:35PM

7
#57 - AA / @john42luke

01/02/2015 at 05:35PM

7
#58 - Niren Orie / @nirenorie

01/03/2015 at 04:17PM

7
#59 - ShundanXiao / @AkashiXiao

01/05/2015 at 10:01PM

7
#60 - kimber gonzalez / @kimberlycreates

01/06/2015 at 09:16PM