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

3357 active golfers, 8983 entries

Leaderboard (lowest score wins):
7
#151 - Chris Edwards / @boise_chris

02/25/2015 at 10:14PM

7
#152 - david hu / @chin33z

02/28/2015 at 07:02AM

7
#153 - ylletyll / @ylletyll

02/28/2015 at 10:34AM

7
#154 - Boobo / @fcukcat

02/28/2015 at 12:36PM

7
#155 - John Smith / @intanalyst1

02/28/2015 at 01:08PM

7
#156 - Andrew / @WK3AS

02/28/2015 at 08:16PM

7
#157 - Yannic Haupenthal / @yhaupenthal

03/01/2015 at 10:17AM

7
#158 - Erik Johansson / @iamknugen

03/01/2015 at 05:49PM

7
#159 - Mariano Macchi / @mmacchif

03/01/2015 at 06:47PM

7
#160 - crittelmeyer / @crittelmeyer

03/02/2015 at 01:01AM

7
#161 - Jerome Korlowski / @nolifish

03/02/2015 at 03:47PM

7
#162 - Andreas Textor / @atextor

03/03/2015 at 09:46AM

7
#163 - Sigurður Ægir Jónsso / @siggiae

03/03/2015 at 11:57AM

7
#164 - Paul Chandler / @chandlpa

03/05/2015 at 12:45AM

7
#165 - Spiral Syzygy / @SpiralSyzygy

03/05/2015 at 03:35PM

7
#166 - Ala' Ibrahim / @alaa_ibrahim

03/05/2015 at 11:44PM

7
#167 - DrHobo / @_DrHobo_

03/06/2015 at 02:09AM

7
#168 - locksten / @locksten

03/06/2015 at 07:57PM

7
#169 - Kenny / @zumalifeguard

03/07/2015 at 04:03PM

7
#170 - Mikael Saltzman / @MikaelSaltzman

03/07/2015 at 05:48PM

7
#171 - 0x255 / @0x255

03/10/2015 at 12:16PM

7
#172 - Karol Katerżawa / @CharlieQbx

03/10/2015 at 03:09PM

7
#173 - 冯璇 / @Harris_fx

03/11/2015 at 09:55AM

7
#174 - Scott Hollinshead / @shollinshead

03/12/2015 at 11:05AM

7
#175 - abcdw / @0x07ffff7df07c0

03/12/2015 at 12:49PM

7
#176 - Roger Spencer / @RojSpencer

03/12/2015 at 09:49PM

7
#177 - Максим Самойлов / @NitiveMax

03/13/2015 at 05:00PM

7
#178 - Rohan Orton / @rohan_orton

03/14/2015 at 10:31PM

7
#179 - Matthieu Crapet / @mcr05

03/14/2015 at 11:53PM

7
#180 - Willy / @Jifuka

03/15/2015 at 01:58AM