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
#2161 - Andrew Jackson / @andrewj_nz

09/17/2016 at 07:33PM

8
#2162 - Aaron J. Radke / @radke

09/18/2016 at 10:54AM

8
#2163 - Allen57 / @ludo57310

09/18/2016 at 02:09PM

8
#2164 - vansan / @VinceVansan

09/20/2016 at 03:02AM

8
#2165 - king_zorba / @StrangeZorba

09/22/2016 at 06:43PM

8
#2166 - Daniel Bellenger / @DanielBellenger

09/24/2016 at 11:08PM

8
#2167 - Liam Wilkins / @CallMeWilkins

09/27/2016 at 03:37PM

8
#2168 - Alex Ulitin / @inventivealex

09/27/2016 at 04:40PM

8
#2169 - Netrisk Cool / @C00lt0

09/29/2016 at 05:40PM

8
#2170 - Tsatsi Mahase / @tsatsi_mahase

10/04/2016 at 12:59PM

8
#2171 - David Fonseca / @ddfonseca6

10/06/2016 at 06:13PM

8
#2172 - Pradeep Kumar 🇮🇳🇮🇳🇮🇳🇮🇱🇮🇱🇮🇱 / @pradeep6kumar

10/10/2016 at 02:39PM

8
#2173 - Tomas[Tomsik68] / @tomsik68

10/14/2016 at 10:24PM

8
#2174 - lucas / @rept357

10/18/2016 at 06:08PM

8
#2175 - Domus Code / @DomusCode

10/18/2016 at 08:31PM

8
#2176 - John Barbero Unenge / @JBarberU

10/19/2016 at 10:02AM

8
#2177 - RAM13 / @cbcvbcxvbcxvb

10/21/2016 at 03:44PM

8
#2178 - Igor Czerwinski / @igoratron

10/22/2016 at 09:36PM

8
#2179 - Brian Phelps / @electronjunkie

10/23/2016 at 06:28PM

8
#2180 - Kim Grytøyr / @kimgrytoyr

10/25/2016 at 08:17PM

8
#2181 - Peter Johannson / @PeterJohannson

10/26/2016 at 10:31PM

8
#2182 - Pierre Sugar / @sugaryourcoffex

10/27/2016 at 06:30PM

8
#2183 - AntonioWong / @AntonioWong

10/30/2016 at 05:58AM

8
#2184 - Simon Plantinga / @SimonPlantinga

10/30/2016 at 01:22PM

8
#2185 - Adrian Stanev / @AdrianStanev

10/30/2016 at 08:23PM

8
#2186 - Bill Ruddock / @biinari

10/31/2016 at 12:07AM

8
#2187 - Awakening George / @GeorgeC_monster

10/31/2016 at 01:44AM

8
#2188 - yorkbai / @baiyqmzqbl

10/31/2016 at 10:52AM

8
#2189 - Nelson M. Haraguchi / @nelsonmhjr

11/01/2016 at 09:39PM

8
#2190 - GiggleGeeks / @GiggleGeeks

11/03/2016 at 10:12AM