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
#2131 - Byron Ellacott / @codebje

08/10/2016 at 02:42AM

8
#2132 - yuri ghensev / @yurighensev

08/10/2016 at 03:49PM

8
#2133 - walwb walwb / @walwby

08/13/2016 at 04:45PM

8
#2134 - Marsellus Wallace / @Marsellus_Walla

08/13/2016 at 09:06PM

8
#2135 - Kai Middleton / @taraindian

08/16/2016 at 06:06PM

8
#2136 - Zdravko Colic / @virtual_key

08/17/2016 at 07:30PM

8
#2137 - Martin Bielik / @mabielik

08/17/2016 at 09:02PM

8
#2138 - AODQ / @AODQIG

08/20/2016 at 03:46PM

8
#2139 - Sp3000 / @sp3katron

08/23/2016 at 08:48AM

8
#2140 - Baptiste Vannesson / @Badacadabra

08/23/2016 at 11:26PM

8
#2141 - citaret / @citaret

08/24/2016 at 01:40PM

8
#2142 - Paul Roe / @ep_roe

08/25/2016 at 05:28PM

8
#2143 - God / @iamgod

08/26/2016 at 08:30AM

8
#2144 - Troy Lee / @troyjlee1

08/26/2016 at 06:30PM

8
#2145 - ymmtmdk / @ymmtmdk

08/30/2016 at 01:43AM

8
#2146 - DavePirie / @PirieDave

08/30/2016 at 04:36PM

8
#2147 - Daniel Teal / @coelestinian

08/30/2016 at 06:28PM

8
#2148 - Alexey / @AlexeyKarpelev

09/01/2016 at 07:05AM

8
#2149 - Speff / @Speffzt

09/01/2016 at 08:21AM

8
#2150 - Karol Łukaszewicz / @Karolukaszewicz

09/01/2016 at 11:48AM

8
#2151 - nixi3 / @Nixi3cc

09/05/2016 at 09:03AM

8
#2152 - Miryam de Lhoneux / @mdlhx

09/06/2016 at 12:19PM

8
#2153 - ILikeVim / @VimIsCool

09/07/2016 at 01:22PM

8
#2154 - Utkrisht Dhankar / @UtkrishtDhankar

09/07/2016 at 03:19PM

8
#2155 - jinx balotchnik / @balotchnik

09/11/2016 at 11:18PM

8
#2156 - Shahaf A / @Av3r4ge

09/12/2016 at 10:30PM

8
#2157 - Rizart Dokollari / @rdokollari

09/15/2016 at 08:19AM

8
#2158 - Ameer Ayoub / @magicmeeror

09/16/2016 at 11:08PM

8
#2159 - javier castro / @eusipial

09/17/2016 at 03:26AM

8
#2160 - Finn Francis / @FinnFrancis

09/17/2016 at 11:45AM