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

4214 active golfers, 11496 entries

Leaderboard (lowest score wins):
8
#2821 - Abe Cede / @A_be_Cede

04/12/2019 at 09:06AM

8
#2822 - Olivier Moindrot / @OlivierMoindrot

04/17/2019 at 01:44PM

8
#2823 - Rand Omperson / @197258444

04/17/2019 at 07:10PM

8
#2824 - Gitsnik / @dracyrys

04/19/2019 at 11:27AM

8
#2825 - Rob Pilling / @bobrippling

04/26/2019 at 09:18AM

8
#2826 - 김현수 / @flyhigh43

04/27/2019 at 06:29PM

8
#2827 - EliTheCoder / @elithecoder

04/30/2019 at 04:21PM

8
#2828 - x / @1rvan3210

05/01/2019 at 04:45AM

8
#2829 - Sherab Giovannini / @shaddycls

05/01/2019 at 05:07PM

8
#2830 - micchie 🐻 / @micchiebear

05/03/2019 at 05:01AM

8
#2831 - Janek Szynal / @rrszynka

05/04/2019 at 08:49PM

8
#2832 - Arno / @arnoxmp

05/08/2019 at 08:26PM

8
#2833 - heppen / @heppen_He

05/10/2019 at 09:09AM

8
#2834 - chihiro / @chihiro0940

05/10/2019 at 02:51PM

8
#2835 - vimgolfer24271 / @vimgolfer24271

05/11/2019 at 12:41PM

8
#2836 - nvb46c74f8ih / @nvb46c74f8ih

05/12/2019 at 09:31AM

8
#2837 - arsi arola / @mos_kiitto

05/15/2019 at 12:15PM

8
#2838 - Daniel Hakimian / @danrafhak

05/15/2019 at 03:21PM

8
#2839 - Joseph A Shalabi / @JosephShalabi

05/15/2019 at 11:46PM

8
#2840 - Lingyu Yi / @LgxLingyu

05/16/2019 at 02:37AM

8
#2841 - ささ / @nick11033

05/16/2019 at 11:41AM

8
#2842 - Leiser Fernández / @leiserfg

05/19/2019 at 04:53PM

8
#2843 - Nick Yeow / @nickyeow

05/21/2019 at 03:17PM

8
#2844 - alexandrasou / @alexandrasou2

05/22/2019 at 11:53AM

8
#2845 - Luis Copetti / @lhcopetti

05/23/2019 at 01:39AM

8
#2846 - aggums / @touhoueurobeat

05/26/2019 at 05:39AM

8
#2847 - shaz / @shaz30307204

05/28/2019 at 11:20AM

8
#2848 - Дима / @dimkino

05/29/2019 at 09:51PM

8
#2849 - sitadivon / @sitadivon1

05/30/2019 at 01:21AM

8
#2850 - Lie Ryan / @lieryan

05/31/2019 at 09:22AM