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

4218 active golfers, 11509 entries

Leaderboard (lowest score wins):
8
#2431 - Adam Kożuch / @adamkozuch

05/13/2017 at 01:33AM

8
#2432 - geeeek / @geeeek100

05/13/2017 at 03:49AM

8
#2433 - korzenmichal / @korzenmichal

05/14/2017 at 09:29PM

8
#2434 - python-tweepy / @python_tweepy

05/14/2017 at 10:10PM

8
#2435 - Pablo / @suspekt007

05/15/2017 at 11:52PM

8
#2436 - Juho Härme / @jharme

05/22/2017 at 08:04PM

8
#2437 - almostdvs / @almostdvs

05/23/2017 at 02:22AM

8
#2438 - Tomas Sikula / @tomsmicroblog

05/25/2017 at 09:58AM

8
#2439 - Karl Hepler / @oldtimeguitar

05/25/2017 at 05:27PM

8
#2440 - Ernesto Barros / @ernestobarros7

05/27/2017 at 10:43PM

8
#2441 - Adriano Benin / @adrianob11

06/06/2017 at 02:23AM

8
#2442 - sebastian pech / @specht08

06/08/2017 at 12:37PM

8
#2443 - David Gustavsson / @mrGustaphe

06/08/2017 at 02:48PM

8
#2444 - Carl Egbert / @CarlOEgbert

06/09/2017 at 06:33AM

8
#2445 - Chris Hilton / @dirtyagile

06/09/2017 at 11:01PM

8
#2446 - Will Gunther / @WillGunther

06/11/2017 at 07:06PM

8
#2447 - あいす / @iScream31

06/13/2017 at 02:18AM

8
#2448 - John Smith / @johns32768

06/16/2017 at 06:54PM

8
#2449 - squdle / @squdle

06/17/2017 at 01:09PM

8
#2450 - moritz / @moritz45081535

06/18/2017 at 01:03PM

8
#2451 - Scott Mills / @smm1729

06/20/2017 at 11:30PM

8
#2452 - Ezra Zigmond / @ezrazig

06/21/2017 at 06:43PM

8
#2453 - Matt Fister / @Mistah_Fistah

06/23/2017 at 01:48AM

8
#2454 - Ryan McNamara / @MadDogMcNamara

06/23/2017 at 07:21AM

8
#2455 - el pollo diablo / @bjagojevich

06/24/2017 at 02:52AM

8
#2456 - YamasakiKenta / @ymknjugg

06/24/2017 at 08:28AM

8
#2457 - Pfhor / @PfhorShark

06/25/2017 at 08:46PM

8
#2458 - Etai Nativ / @enativ72

06/27/2017 at 11:17AM

8
#2459 - Joseph Satterfield™ / @joejsatterfield

06/29/2017 at 06:20PM

8
#2460 - Kieron Browne / @KieronBrowne1

06/29/2017 at 07:21PM