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

3951 active golfers, 10698 entries

Leaderboard (lowest score wins):
8
#1951 - Tarik Koc / @tariktheturk

11/20/2015 at 11:55PM

8
#1952 - Stoyko Stanchev / @stoykostanchev

11/22/2015 at 04:36AM

8
#1953 - rantelo / @rantelo7

11/23/2015 at 07:36PM

8
#1954 - William Ott / @oddalot

11/25/2015 at 04:52AM

8
#1955 - Stefan Larsson / @Objektiv

11/25/2015 at 05:36PM

8
#1956 - Johannes K / @JohannesK9

11/27/2015 at 12:15AM

8
#1957 - Lajos Koszti / @Ajnasz

11/29/2015 at 03:00PM

8
#1958 - Jon / @jreimels

12/01/2015 at 09:08PM

8
#1959 - lorentrogers / @lorentrogers

12/02/2015 at 07:38PM

8
#1960 - adrien frediani / @fredianiadrien

12/05/2015 at 11:10PM

8
#1961 - Paul D. Kang / @pauldakang

12/08/2015 at 02:33AM

8
#1962 - Dontneedto Knowit / @DontneedtoK

12/08/2015 at 07:48PM

8
#1963 - Brian D. Goad / @bbbco

12/08/2015 at 10:19PM

8
#1964 - Sean Stout / @s183s657

12/09/2015 at 03:56AM

8
#1965 - Bence Béky / @bence_beky

12/10/2015 at 11:57PM

8
#1966 - Mendel Simon / @agentms11

12/11/2015 at 01:26AM

8
#1967 - Jonas K. / @geratheon

12/13/2015 at 08:17PM

8
#1968 - kaan / @bike

12/14/2015 at 06:23PM

8
#1969 - Ben / @CubicPants

12/16/2015 at 11:29PM

8
#1970 - thlix / @thlix

12/18/2015 at 12:27PM

8
#1971 - Charlie / @wookie_giant

12/19/2015 at 07:42PM

8
#1972 - Yann Colina / @YannColina

12/19/2015 at 08:12PM

8
#1973 - Abdullah / @dada3mn

12/19/2015 at 10:03PM

8
#1974 - Ashley Ryan / @aviendha25

12/21/2015 at 06:04PM

8
#1975 - abbystasja / @abbystasja

12/21/2015 at 10:33PM

8
#1976 - Lord Phantom / @lord_phantom_pl

12/22/2015 at 12:24AM

8
#1977 - Sebastian Nickel / @tumblingwhimsy

12/23/2015 at 05:50PM

8
#1978 - Ethan Stewart / @EthanS279

12/23/2015 at 09:04PM

8
#1979 - Elrrrrrrr / @Elrrrrrrr

12/24/2015 at 07:05AM

8
#1980 - ZIGOUTE - WANT SOME? / @leZigoute

12/24/2015 at 09:59PM