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

3871 active golfers, 10444 entries

Leaderboard (lowest score wins):
8
#1951 - Jeff Chao / @angrammarpro

12/27/2015 at 09:51PM

8
#1952 - Framecurrent / @framecurrent

12/28/2015 at 01:34AM

8
#1953 - Michael / @Michael57309129

12/30/2015 at 07:44AM

8
#1954 - Rauf Kurbanov / @paRRad0x

01/02/2016 at 10:17AM

8
#1955 - Oisin Carroll / @oisincar

01/03/2016 at 05:59PM

8
#1956 - fuck GFW / @ravishGFW

01/05/2016 at 11:09AM

8
#1957 - Josh Cho / @silly_jcho

01/12/2016 at 04:40AM

8
#1958 - lassie (らっしー) / @lass1e

01/12/2016 at 02:24PM

8
#1959 - Shalldök / @shalldoek

01/13/2016 at 02:07AM

8
#1960 - Aleksey Zhidkov / @AlexeyZhidkov

01/13/2016 at 07:09AM

8
#1961 - Gabriele Sani / @gabriele_sani

01/13/2016 at 03:51PM

8
#1962 - Austin Wood / @indiesquidge

01/13/2016 at 05:43PM

8
#1963 - Ankit Sardesai / @amsardesai

01/14/2016 at 12:54AM

8
#1964 - Francisco Giordano / @frangio_

01/14/2016 at 08:57PM

8
#1965 - RobertT / @techrt2050

01/19/2016 at 04:46AM

8
#1966 - vimcoder / @Khanal12Uttam

01/21/2016 at 07:56PM

8
#1967 - uraurayama / @uraurayama

01/25/2016 at 02:27PM

8
#1968 - HariOm Gaur / @hogaur

01/26/2016 at 01:01PM

8
#1969 - Frederik Klama / @fklama

01/27/2016 at 11:14AM

8
#1970 - Ben Friedland / @bfriedland174

01/28/2016 at 07:33PM

8
#1971 - Ian Trophy / @prfrgg

01/29/2016 at 08:01PM

8
#1972 - Victor Gaudard / @gaudardv

02/02/2016 at 05:16PM

8
#1973 - Andre Callus / @AndreCallus

02/03/2016 at 05:34AM

8
#1974 - Durga Swaroop Perla / @durgaswaroop

02/03/2016 at 04:35PM

8
#1975 - Alpha Centauri B / @alphacentaurib

02/04/2016 at 05:58PM

8
#1976 - udreki / @udreki

02/06/2016 at 08:53PM

8
#1977 - Riz Joj / @rizjoj

02/06/2016 at 11:32PM

8
#1978 - Laurent Atlan / @laurentatlan1

02/08/2016 at 09:57PM

8
#1979 - GarrettPeterson / @GarrettPeterson

02/09/2016 at 08:05PM

8
#1980 - trbvn / @trbvntrbvn

02/10/2016 at 04:10PM