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
#2251 - citaret / @citaret

08/24/2016 at 01:40PM

8
#2252 - Paul Roe / @ep_roe

08/25/2016 at 05:28PM

8
#2253 - God / @iamgod

08/26/2016 at 08:30AM

8
#2254 - Troy Lee / @troyjlee1

08/26/2016 at 06:30PM

8
#2255 - ymmtmdk / @ymmtmdk

08/30/2016 at 01:43AM

8
#2256 - DavePirie / @PirieDave

08/30/2016 at 04:36PM

8
#2257 - Daniel Teal / @coelestinian

08/30/2016 at 06:28PM

8
#2258 - Alexey / @AlexeyKarpelev

09/01/2016 at 07:05AM

8
#2259 - Speff / @Speffzt

09/01/2016 at 08:21AM

8
#2260 - Karol Łukaszewicz / @Karolukaszewicz

09/01/2016 at 11:48AM

8
#2261 - nixi3 / @Nixi3cc

09/05/2016 at 09:03AM

8
#2262 - Miryam de Lhoneux / @mdlhx

09/06/2016 at 12:19PM

8
#2263 - ILikeVim / @VimIsCool

09/07/2016 at 01:22PM

8
#2264 - Utkrisht Dhankar / @UtkrishtDhankar

09/07/2016 at 03:19PM

8
#2265 - jinx balotchnik / @balotchnik

09/11/2016 at 11:18PM

8
#2266 - Shahaf A / @Av3r4ge

09/12/2016 at 10:30PM

8
#2267 - Rizart Dokollari / @rdokollari

09/15/2016 at 08:19AM

8
#2268 - Ameer Ayoub / @magicmeeror

09/16/2016 at 11:08PM

8
#2269 - javier castro / @eusipial

09/17/2016 at 03:26AM

8
#2270 - Finn Francis / @FinnFrancis

09/17/2016 at 11:45AM

8
#2271 - Andrew Jackson / @andrewj_nz

09/17/2016 at 07:33PM

8
#2272 - Aaron J. Radke / @radke

09/18/2016 at 10:54AM

8
#2273 - Allen57 / @ludo57310

09/18/2016 at 02:09PM

8
#2274 - vansan / @VinceVansan

09/20/2016 at 03:02AM

8
#2275 - king_zorba / @StrangeZorba

09/22/2016 at 06:43PM

8
#2276 - Daniel Bellenger / @DanielBellenger

09/24/2016 at 11:08PM

8
#2277 - Liam Wilkins / @CallMeWilkins

09/27/2016 at 03:37PM

8
#2278 - Alex Ulitin / @inventivealex

09/27/2016 at 04:40PM

8
#2279 - Netrisk Cool / @C00lt0

09/29/2016 at 05:40PM

8
#2280 - Tsatsi Mahase / @tsatsi_mahase

10/04/2016 at 12:59PM