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

3280 active golfers, 8769 entries

Leaderboard (lowest score wins):
30
#3271 - Magnus Pettersson / @Entropy_swe

09/16/2016 at 02:20PM

32
#3272 - Sohit Pal / @SPKB24

09/18/2018 at 12:40PM

37
#3273 - Morgan Waters / @morganwaters

05/25/2015 at 06:34AM

56
#3274 - rungobier / @rungobier

01/09/2015 at 03:43AM

64
#3275 - 박주영 / @xhgnVrQ6uUJOTnB

06/29/2018 at 08:01AM

66
#3276 - Theodore Lee / @theo825

01/06/2015 at 11:57PM

70
#3277 - Alexey Kalinin / @hsalkaline

01/10/2015 at 11:41PM

96
#3278 - Simen Skoglund / @SimenSkog

08/13/2015 at 08:11PM

99
#3279 - Sergey / @VimGolf_only

12/13/2014 at 11:08AM

120
#3280 - 휘람 / @Brandhwi_0129

06/29/2018 at 08:34AM