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
#241 - Mark Saiget / @MarkSaiget

04/22/2015 at 03:45AM

7
#242 - horace / @hor1ace

04/22/2015 at 12:11PM

7
#243 - Johannes Elferich / @jojoelfe

04/25/2015 at 05:25AM

7
#244 - Antony Scriven / @antonyscriven

04/27/2015 at 07:34AM

7
#245 - skrobul / @skrobul

04/28/2015 at 12:48PM

7
#246 - Jason Walton / @jay_ay_y

04/28/2015 at 07:51PM

7
#247 - e / @MPeaKelE

05/01/2015 at 12:32PM

7
#248 - Rui Mendes / @rcm_dium

05/02/2015 at 11:15AM

7
#249 - Alan Rafael / @alanrrb

05/03/2015 at 03:41AM

7
#250 - Pierpaolo Frasa / @Tainnor

05/03/2015 at 04:12AM

7
#251 - diziet.sma / @diziet__sma

05/04/2015 at 11:12PM

7
#252 - James Baird / @jlbaird3

05/05/2015 at 02:14AM

7
#253 - Andrei / @AlphaZilla

05/05/2015 at 11:25AM

7
#254 - Wade / @vvandy

05/06/2015 at 06:33PM

7
#255 - Niels Madan / @nielsmadan

05/07/2015 at 08:22AM

7
#256 - vimgolfuser / @vimgolfuser_

05/08/2015 at 12:27PM

7
#257 - Marcio Junior / @marciojunior_me

05/09/2015 at 05:02PM

7
#258 - smokemachine / @smokemachine

05/09/2015 at 10:04PM

7
#259 - Brandon Conway / @brandoncconway

05/11/2015 at 02:25AM

7
#260 - Rickard Fransson / @xxRion

05/11/2015 at 10:25AM

7
#261 - fredrik / @mrz1973se

05/11/2015 at 10:50AM

7
#262 - Li Wen Bing / @wbinglee

05/11/2015 at 10:08PM

7
#263 - Andy Zhang / @andyzg3

05/13/2015 at 03:52AM

7
#264 - danweaver / @danweaver

05/13/2015 at 04:35PM

7
#265 - Hendrik Lammers / @hendriklammers

05/14/2015 at 04:32AM

7
#266 - Douglas Pollock / @desudation

05/15/2015 at 09:28PM

7
#267 - Sahana Rajasekar / @sahanarajasekar

05/15/2015 at 09:29PM

7
#268 - Flugsio / @flugsio

05/16/2015 at 05:51AM

7
#269 - Peter Burt / @peterburt

05/16/2015 at 09:57PM

7
#270 - STOOFAN / @guacpowercrunch

05/17/2015 at 04:25AM