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

3903 active golfers, 10559 entries

Leaderboard (lowest score wins):
8
#2311 - Rami Hovi / @hacker_lawyer

04/29/2017 at 09:19AM

8
#2312 - Alexander Gryson / @agryson

05/01/2017 at 02:36PM

8
#2313 - Etienne de Maricourt / @edemaric

05/03/2017 at 04:06PM

8
#2314 - Edouard Piette / @EdPiette

05/04/2017 at 02:41PM

8
#2315 - Rolf K. / @mindleftbody

05/04/2017 at 07:02PM

8
#2316 - Jerry Wu / @AzureSpectra

05/05/2017 at 07:04PM

8
#2317 - James Houghton / @jamesthoughton

05/05/2017 at 07:05PM

8
#2318 - Codingpotato / @codingpotato

05/07/2017 at 08:26AM

8
#2319 - Hocan Eittbe / @fifthwallfly

05/10/2017 at 03:04AM

8
#2320 - Anil / @anilkrishna_m

05/10/2017 at 03:36PM

8
#2321 - Tommaso Leonardi / @tom_leon

05/11/2017 at 01:44PM

8
#2322 - Adam Kożuch / @adamkozuch

05/13/2017 at 01:33AM

8
#2323 - geeeek / @geeeek100

05/13/2017 at 03:49AM

8
#2324 - korzenmichal / @korzenmichal

05/14/2017 at 09:29PM

8
#2325 - python-tweepy / @python_tweepy

05/14/2017 at 10:10PM

8
#2326 - Pablo / @suspekt007

05/15/2017 at 11:52PM

8
#2327 - Juho Härme / @jharme

05/22/2017 at 08:04PM

8
#2328 - almostdvs / @almostdvs

05/23/2017 at 02:22AM

8
#2329 - Tomas Sikula / @tomsmicroblog

05/25/2017 at 09:58AM

8
#2330 - Karl Hepler / @oldtimeguitar

05/25/2017 at 05:27PM

8
#2331 - Ernesto Barros / @ernestobarros7

05/27/2017 at 10:43PM

8
#2332 - Adriano Benin / @adrianob11

06/06/2017 at 02:23AM

8
#2333 - sebastian pech / @specht08

06/08/2017 at 12:37PM

8
#2334 - David Gustavsson / @mrGustaphe

06/08/2017 at 02:48PM

8
#2335 - Carl Egbert / @CarlOEgbert

06/09/2017 at 06:33AM

8
#2336 - Chris Hilton / @dirtyagile

06/09/2017 at 11:01PM

8
#2337 - Will Gunther / @WillGunther

06/11/2017 at 07:06PM

8
#2338 - あいす / @iScream31

06/13/2017 at 02:18AM

8
#2339 - John Smith / @johns32768

06/16/2017 at 06:54PM

8
#2340 - squdle / @squdle

06/17/2017 at 01:09PM