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

3950 active golfers, 10694 entries

Leaderboard (lowest score wins):
8
#2791 - Diego Navarro / @die_4001

07/24/2019 at 06:57PM

8
#2792 - band / @band26376522

07/24/2019 at 08:38PM

8
#2793 - Fred Leclerc / @fredleclerc

07/24/2019 at 08:52PM

8
#2794 - mrrdl / @mrrdl5

07/26/2019 at 06:12PM

8
#2795 - Christopher Currens / @chriscurrens

07/26/2019 at 08:18PM

8
#2796 - kokiteru / @hommakoki

07/26/2019 at 10:27PM

8
#2797 - Matthew Rossman / @chimpman252

07/27/2019 at 07:35PM

8
#2798 - entitled millennial / @PythonBro

07/28/2019 at 10:10PM

8
#2799 - Matt Vaughn / @mattttvaughn

07/29/2019 at 02:59AM

8
#2800 - Pittson / @Pittson95

07/31/2019 at 07:03PM

8
#2801 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 03:57PM

8
#2802 - Jonathan Browning / @yungjig90

08/02/2019 at 05:05PM

8
#2803 - akitaka shimomura / @akshimo

08/04/2019 at 03:24AM

8
#2804 - Mr_Djez / @DjezMr

08/05/2019 at 08:44PM

8
#2805 - dahara / @kuma_moooon

08/06/2019 at 03:43PM

8
#2806 - sooqua / @sooqua

08/08/2019 at 10:08AM

8
#2807 - Luiz Eduardo Amaral / @_luxedo

08/09/2019 at 04:30PM

8
#2808 - Adrien / @beudbeud

08/09/2019 at 10:09PM

8
#2809 - Matt Tuttle / @Matt_Tuttle

08/10/2019 at 12:02AM

8
#2810 - Mike Hourahine / @mhourahine

08/12/2019 at 01:11AM

8
#2811 - BESSENG A IREH Guy / @guybesseng

08/15/2019 at 11:10PM

8
#2812 - Hot Take / @hottake69

08/17/2019 at 08:23PM

8
#2813 - aurelian ardeleanu / @inquarto

08/17/2019 at 08:48PM

8
#2814 - vimRunnerUp3000 / @VUp3000

08/17/2019 at 11:20PM

8
#2815 - David / @davidrapsey

08/18/2019 at 07:38AM

8
#2816 - vim_ninja / @NinjaVim

08/19/2019 at 03:58AM

8
#2817 - kevinski / @kevinsk30746831

08/22/2019 at 03:12PM

8
#2818 - José / @AngelGaldamez

08/26/2019 at 02:01AM

8
#2819 - GAUTAM V NAIK / @gautamnaik1994

08/26/2019 at 10:43AM

8
#2820 - Guillaume leon / @Le_Zappellin

08/26/2019 at 04:44PM