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

3871 active golfers, 10444 entries

Leaderboard (lowest score wins):
8
#1711 - Austin Anderson / @ProtractorNinja

05/20/2015 at 09:14PM

8
#1712 - Emily / @EmilyDbv

05/21/2015 at 12:13AM

8
#1713 - Joel Gallant / @joelg236

05/22/2015 at 12:20AM

8
#1714 - Mateusz / @foobar98765

05/22/2015 at 02:48PM

8
#1715 - Mauro Persano / @fzort

05/23/2015 at 03:39PM

8
#1716 - Personal Life Trackr / @PersLifeTrackr

05/24/2015 at 08:22AM

8
#1717 - Tony Zou / @uint16_t

05/24/2015 at 08:56PM

8
#1718 - aaron w / @twyeAaron

05/24/2015 at 11:25PM

8
#1719 - Bruce Woodward / @Bruce_Woodward

05/25/2015 at 09:14PM

8
#1720 - Emanuele Rusconi / @emarsk

05/26/2015 at 08:58PM

8
#1721 - Tom / @BureaucratGr11

05/27/2015 at 08:28PM

8
#1722 - Koding TV / @kodinglive

05/27/2015 at 09:21PM

8
#1723 - David Rogers / @al_the_x

05/27/2015 at 09:23PM

8
#1724 - Javier Soto / @sotoseattle

05/28/2015 at 04:39PM

8
#1725 - Lucien Baron / @Luci1B

05/28/2015 at 08:01PM

8
#1726 - Sid Momin / @mominsid

05/28/2015 at 10:06PM

8
#1727 - Adetque / @Adetque

05/29/2015 at 07:35AM

8
#1728 - Jesus Martinez / @JesusMGR

05/29/2015 at 02:06PM

8
#1729 - Joakim Hansen / @gnofs

05/29/2015 at 03:08PM

8
#1730 - ___ / @jdemici

05/29/2015 at 06:20PM

8
#1731 - Eduardo Antunes / @ecsousa

05/30/2015 at 03:10AM

8
#1732 - Sailesh Mittal / @saileshmittal

05/31/2015 at 02:56AM

8
#1733 - Alexander / @mostofmystuff

05/31/2015 at 07:02PM

8
#1734 - Aurélien Deharbe / @0x_ad

06/01/2015 at 12:50PM

8
#1735 - Rob Wise / @RobAWise

06/01/2015 at 10:49PM

8
#1736 - Sir Chauffeur / @sebdul

06/02/2015 at 01:46PM

8
#1737 - antew / @antewcode

06/03/2015 at 01:55AM

8
#1738 - Alexis Luengas / @lexluengas

06/04/2015 at 07:31PM

8
#1739 - Eldar Yusupov / @EldarYusupov

06/04/2015 at 08:28PM

8
#1740 - Steve Bitner / @fourbitbots

06/05/2015 at 02:22AM