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

4206 active golfers, 11477 entries

Leaderboard (lowest score wins):
7
#691 - Guillem Blanco / @BlancoGuillem

08/24/2016 at 12:50PM

7
#692 - Andsmat / @asdsadsandkage

08/26/2016 at 10:31AM

7
#693 - Thiago Belem / @TiuTalk

08/27/2016 at 04:37AM

7
#694 - antoine biard / @biard_antoine

08/29/2016 at 03:39PM

7
#695 - Andrew / @PickledCupcakes

08/30/2016 at 05:46AM

7
#696 - Ashish Narasimham / @asheeshkabob

08/30/2016 at 03:45PM

7
#697 - Stephen Aument / @saument

08/30/2016 at 05:25PM

7
#698 - Will / @obiwan__k3n00bi

08/31/2016 at 04:01AM

7
#699 - JSDurand / @DurandJS

08/31/2016 at 01:47PM

7
#700 - Aaron Williamson / @TheFunkOverlord

09/01/2016 at 05:23PM

7
#701 - Brian / @b_turchyn

09/01/2016 at 08:51PM

7
#702 - jdupont655 / @jdupont655

09/01/2016 at 10:51PM

7
#703 - 이선협 / @kciter

09/02/2016 at 08:51AM

7
#704 - Krzysztof Borkowski / @smiechowy

09/02/2016 at 06:13PM

7
#705 - Maxim Pertsov / @maxim_pertsov

09/03/2016 at 06:57AM

7
#706 - Peter / @sunirbmag

09/03/2016 at 04:15PM

7
#707 - Mateusz / @Mantos77

09/04/2016 at 11:28PM

7
#708 - loki2441 / @loki2441

09/05/2016 at 08:36AM

7
#709 - John Jacob / @johnrjacob

09/06/2016 at 12:24AM

7
#710 - Alexander / @vlasyuk_a

09/06/2016 at 10:39AM

7
#711 - Chris / @Gaunah_

09/07/2016 at 12:17PM

7
#712 - hor1ace / @hor3ace

09/07/2016 at 04:17PM

7
#713 - 알카포 / @alkpo12

09/08/2016 at 08:09PM

7
#714 - 박 재 성 / @javajigi

09/09/2016 at 01:27AM

7
#715 - Constantine / @ConstantineHatz

09/12/2016 at 08:09PM

7
#716 - Juraj Petrik / @jurajpetrik

09/14/2016 at 05:47PM

7
#717 - Miłosz Łakomy / @foobar01123

09/15/2016 at 09:18AM

7
#718 - Rasmus / @SBareSSomErMig

09/16/2016 at 08:16PM

7
#719 - ✘A / @Lolicon_H

09/17/2016 at 12:40AM

7
#720 - Bendik Samseth / @BSamseth

09/19/2016 at 01:23PM