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

3953 active golfers, 10705 entries

Leaderboard (lowest score wins):
8
#1921 - Yusent Chig / @yusent12

10/22/2015 at 05:13PM

8
#1922 - Campbell Davis / @Campbell_Dav

10/23/2015 at 08:38AM

8
#1923 - NuM / @NuM314

10/24/2015 at 04:51AM

8
#1924 - Nick Miller / @ItsMeNickMiller

10/24/2015 at 07:46PM

8
#1925 - TinPotRadio / @TinPotRadio1

10/25/2015 at 10:14AM

8
#1926 - Bogumił Kamiński / @BogumilKaminski

10/25/2015 at 05:20PM

8
#1927 - Paul Hornsey / @MadDogNinja

10/27/2015 at 12:45AM

8
#1928 - Ершов Иван / @ivanershov51

10/29/2015 at 11:50PM

8
#1929 - Ben Harris / @bharrisau

11/01/2015 at 07:35AM

8
#1930 - Arthur Brown / @skeidsberget

11/04/2015 at 06:49PM

8
#1931 - Pablo Castaneda / @pabloca23116377

11/05/2015 at 08:13PM

8
#1932 - raajay viswanathan / @raajay

11/05/2015 at 09:31PM

8
#1933 - Fang Jia Zhen / @FangJiaZhen

11/06/2015 at 01:34AM

8
#1934 - Fredrik liljedahl / @fliljeda

11/06/2015 at 05:31PM

8
#1935 - Yihang Ho / @yihang5

11/07/2015 at 05:12AM

8
#1936 - Nam Net / @tafopigibi

11/07/2015 at 07:38PM

8
#1937 - Marcin Cabaj / @marcincabaj

11/09/2015 at 12:28PM

8
#1938 - Robert Goeddel / @f0rdpr3fect

11/09/2015 at 10:11PM

8
#1939 - Puda / @Puda2sRachi

11/10/2015 at 04:30PM

8
#1940 - Aaron Mininger / @AMininger

11/10/2015 at 06:45PM

8
#1941 - dan sweeting / @itsjustcode

11/11/2015 at 11:33PM

8
#1942 - Aurélien Lair / @aurelien_lair

11/12/2015 at 10:20PM

8
#1943 - Tom Sisk / @TomSisk

11/13/2015 at 09:09AM

8
#1944 - Lev / @siuzda

11/15/2015 at 01:39PM

8
#1945 - Ismaël Mejía / @iemejia

11/15/2015 at 05:13PM

8
#1946 - territorialmale / @territorialmale

11/16/2015 at 09:19PM

8
#1947 - Phill / @PhillipHermans

11/17/2015 at 09:39PM

8
#1948 - Jesse Atkinson / @jsatk

11/18/2015 at 07:12PM

8
#1949 - Ryuichiro / @ryuichiro44

11/19/2015 at 03:03PM

8
#1950 - Jo / @jonearth42

11/19/2015 at 10:53PM