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
#2011 - trbvn / @trbvntrbvn

02/10/2016 at 04:10PM

8
#2012 - James Burns / @James_Ian_Burns

02/11/2016 at 01:21PM

8
#2013 - Janine Cheng / @janineist

02/12/2016 at 01:07PM

8
#2014 - walter sullivan / @walters82208305

02/12/2016 at 02:29PM

8
#2015 - Raymond Cox / @RaymondCox

02/12/2016 at 10:34PM

8
#2016 - Colin Foster / @Poolshark049

02/12/2016 at 10:37PM

8
#2017 - Rubén Chavarría T. / @rchavarriat

02/15/2016 at 11:55AM

8
#2018 - Sebastian Pardo / @sebpardo

02/17/2016 at 10:40PM

8
#2019 - Maciej Panasiewicz / @Grunthor1

02/18/2016 at 10:48PM

8
#2020 - Michał Misiarek / @mmisiarek

02/19/2016 at 02:34PM

8
#2021 - Ian Clark / @grappigpanda

02/19/2016 at 08:53PM

8
#2022 - charlie garcia / @thecgarcia

02/19/2016 at 10:04PM

8
#2023 - Zach Bajaber / @zachariab

02/20/2016 at 05:21PM

8
#2024 - leroy / @leroypubel

02/21/2016 at 08:52AM

8
#2025 - Markus Bohl / @bohl_markus

02/23/2016 at 10:52AM

8
#2026 - Connor Freeman / @conrfrmn

02/24/2016 at 02:12AM

8
#2027 - Kevin Gisi / @cheerskevin

02/24/2016 at 08:18AM

8
#2028 - Antony Garand / @AntoGarand

02/24/2016 at 07:56PM

8
#2029 - Jan Bundesmann / @janbundesmann

03/02/2016 at 02:11PM

8
#2030 - Mister Knister / @vimgolf_ctrl_x

03/03/2016 at 07:03AM

8
#2031 - Dylan / @helloasdff

03/03/2016 at 08:30PM

8
#2032 - Tomasz Walotek / @uolot

03/04/2016 at 10:42AM

8
#2033 - Dimitar Dimitrov / @kurkale6ka

03/04/2016 at 11:58AM

8
#2034 - Piotr Madaliński / @MadalinskiPiotr

03/06/2016 at 04:54AM

8
#2035 - Каббанец / @kabbansky

03/07/2016 at 08:03AM

8
#2036 - tbodt / @tblodt

03/09/2016 at 08:58PM

8
#2037 - Frank Qi / @qdev76

03/09/2016 at 10:03PM

8
#2038 - Luke Warlik / @luke_warlik

03/09/2016 at 10:26PM

8
#2039 - Codecor / @codecor02

03/13/2016 at 07:23PM

8
#2040 - Nathan Brown / @nkabrownie

03/15/2016 at 12:50PM