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

4202 active golfers, 11464 entries

Leaderboard (lowest score wins):
7
#211 - Shriharsh / @ShriharshMishra

03/31/2015 at 06:51PM

7
#212 - Raj / @brshenoy

04/02/2015 at 05:32PM

7
#213 - Evan Coleman / @edc1591

04/02/2015 at 05:44PM

7
#214 - 借猫@がんばるん / @RentalCat__

04/03/2015 at 01:55AM

7
#215 - You Mustnotknow / @y8hVz6fJdm6Lt5q

04/03/2015 at 05:04PM

7
#216 - bc / @_bcarrell

04/03/2015 at 05:27PM

7
#217 - Patrick M. Regan / @rubbsdecvik

04/03/2015 at 06:18PM

7
#218 - ipson_nek / @ipson_nek

04/03/2015 at 06:41PM

7
#219 - Emmanuel Denloye-Ito / @EmmanuelDenloye

04/03/2015 at 09:53PM

7
#220 - John Horne / @TheDirtyJanitor

04/04/2015 at 05:25AM

7
#221 - johannes err / @into_the_beta

04/04/2015 at 09:13PM

7
#222 - Fan Zhang / @2bDeactivat3d

04/06/2015 at 12:17AM

7
#223 - Ethan Madison / @_ethanmad

04/06/2015 at 03:58AM

7
#224 - Josh Hartigan / @joshhartigan

04/07/2015 at 03:17PM

7
#225 - Kartik Shenoy / @kartikshenoy

04/08/2015 at 08:27PM

7
#226 - Lieuwe Rooijakkers / @LieuweR

04/11/2015 at 05:44PM

7
#227 - Bradley Hardy / @bradleyishardy

04/12/2015 at 01:26PM

7
#228 - Thomas Royer / @Cydonia7

04/14/2015 at 05:47PM

7
#229 - simonced / @simonced

04/15/2015 at 03:46AM

7
#230 - Joshua Simmons / @MmnJoshua

04/15/2015 at 05:44AM

7
#231 - Borimir Resurrected / @Borimir

04/15/2015 at 05:44AM

7
#232 - Chad / @__chad__

04/15/2015 at 07:12PM

7
#233 - Roman Charuhin / @10mpy

04/16/2015 at 11:39AM

7
#234 - we’re going to need a bigger bot / @assaflavie

04/16/2015 at 06:31PM

7
#235 - Tom van der Lee / @TomVdLee

04/17/2015 at 08:53AM

7
#236 - Charles Joachim / @cacplate

04/17/2015 at 05:57PM

7
#237 - Joseph Siddall / @jbsiddall

04/19/2015 at 05:48AM

7
#238 - Joop joopsen / @RapidLoL

04/20/2015 at 08:39PM

7
#239 - Jack murphy / @Jerkmurphy

04/21/2015 at 03:45PM

7
#240 - Johannes Hansen / @JohannesEH

04/21/2015 at 05:49PM