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

4152 active golfers, 11318 entries

Leaderboard (lowest score wins):
7
#781 - Craig Langford / @cllangfo

12/11/2016 at 12:53PM

7
#782 - Guy / @Guy56431415

12/12/2016 at 01:37AM

7
#783 - 21389104298208943812 / @j1359534

12/12/2016 at 10:51PM

7
#784 - floccwins / @floccwins

12/13/2016 at 02:12PM

7
#785 - Douglas Roper / @dougdroper

12/16/2016 at 04:53PM

7
#786 - Nessig / @Nessig5

12/18/2016 at 06:09AM

7
#787 - Andrew Huang / @TDAlgory

12/18/2016 at 08:11AM

7
#788 - Abdo Achkar / @Achkar

12/20/2016 at 04:08PM

7
#789 - John lolcats Manst / @lolcatsman

12/21/2016 at 08:22AM

7
#790 - Andrew Lewis / @alew_is

12/21/2016 at 05:10PM

7
#791 - さよきみ / @MrIn1121

12/22/2016 at 06:40PM

7
#792 - Hlynur / @HlynDiezel

12/24/2016 at 01:00AM

7
#793 - Jed Cua / @jedcua_novare

12/27/2016 at 07:29AM

7
#794 - Krishnakumar / @Krishna84417968

12/28/2016 at 08:36AM

7
#795 - Jake Utley / @jakeutley

12/29/2016 at 03:06AM

7
#796 - Izabel Jelenić / @IzabelJelenic

12/29/2016 at 03:49PM

7
#797 - Mayank Suman / @mayank_suman

12/30/2016 at 05:10AM

7
#798 - Zbyszek J / @zbig83

12/30/2016 at 08:54AM

7
#799 - Saurav Mitra / @SauravMitra11

12/31/2016 at 07:24AM

7
#800 - Peter Chynoweth / @pcchynoweth

12/31/2016 at 02:20PM

7
#801 - tu bai / @baidatutu

01/03/2017 at 12:59AM

7
#802 - Markus Lux / @_l0x_

01/03/2017 at 01:26PM

7
#803 - Patrick Sanan / @patricksanan

01/06/2017 at 04:14PM

7
#804 - 84shin / @ssssww

01/11/2017 at 06:53PM

7
#805 - William Surles / @williamsurles

01/12/2017 at 10:25PM

7
#806 - J. Cosa / @esoesotracosa

01/16/2017 at 11:24AM

7
#807 - Adrian Goldwaser / @AdrianGoldwaser

01/17/2017 at 01:41PM

7
#808 - YaLTeR / @YaLTeRz

01/18/2017 at 09:12AM

7
#809 - Zhihong Liu / @pieapple03

01/21/2017 at 03:08PM

7
#810 - sijinyuan / @sijinyuan

01/23/2017 at 01:32AM