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
#2881 - 🦉 / @die_4001

07/24/2019 at 06:57PM

8
#2882 - band / @band26376522

07/24/2019 at 08:38PM

8
#2883 - Fred Leclerc / @fredleclerc

07/24/2019 at 08:52PM

8
#2884 - mrrdl / @mrrdl5

07/26/2019 at 06:12PM

8
#2885 - Christopher Currens / @chriscurrens

07/26/2019 at 08:18PM

8
#2886 - kokiteru / @hommakoki

07/26/2019 at 10:27PM

8
#2887 - Matthew Rossman / @chimpman252

07/27/2019 at 07:35PM

8
#2888 - entitled millennial / @PythonBro

07/28/2019 at 10:10PM

8
#2889 - Matt Vaughn / @mattttvaughn

07/29/2019 at 02:59AM

8
#2890 - Pittson / @Pittson95

07/31/2019 at 07:03PM

8
#2891 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 03:57PM

8
#2892 - Jonathan Browning / @yungjig90

08/02/2019 at 05:05PM

8
#2893 - akitaka shimomura / @akshimo

08/04/2019 at 03:24AM

8
#2894 - Mr_Djez / @DjezMr

08/05/2019 at 08:44PM

8
#2895 - dahara / @kuma_moooon

08/06/2019 at 03:43PM

8
#2896 - sooqua / @sooqua

08/08/2019 at 10:08AM

8
#2897 - Luiz Eduardo Amaral / @_luxedo

08/09/2019 at 04:30PM

8
#2898 - Adrien / @beudbeud

08/09/2019 at 10:09PM

8
#2899 - Matt Tuttle / @Matt_Tuttle

08/10/2019 at 12:02AM

8
#2900 - Mike Hourahine / @mhourahine

08/12/2019 at 01:11AM

8
#2901 - BESSENG A IREH Guy / @guybesseng

08/15/2019 at 11:10PM

8
#2902 - Hot Take / @hottake69

08/17/2019 at 08:23PM

8
#2903 - aurelian ardeleanu / @inquarto

08/17/2019 at 08:48PM

8
#2904 - vimRunnerUp3000 / @VUp3000

08/17/2019 at 11:20PM

8
#2905 - David / @davidrapsey

08/18/2019 at 07:38AM

8
#2906 - vim_ninja / @NinjaVim

08/19/2019 at 03:58AM

8
#2907 - kevinski / @kevinsk30746831

08/22/2019 at 03:12PM

8
#2908 - Aioriya / @AioriyaDonk

08/26/2019 at 02:01AM

8
#2909 - GAUTAM V NAIK / @gautamnaik1994

08/26/2019 at 10:43AM

8
#2910 - Guillaume leon / @Le_Zappellin

08/26/2019 at 04:44PM