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

3903 active golfers, 10559 entries

Leaderboard (lowest score wins):
8
#2221 - Michał Dytko / @DytkoM

12/16/2016 at 09:19AM

8
#2222 - janusz janusz / @januszjanusz20

12/16/2016 at 08:02PM

8
#2223 - Pierre Maoui / @poupougnac

12/17/2016 at 05:37PM

8
#2224 - chocolate / @chocola81394123

12/18/2016 at 08:58AM

8
#2225 - Lewis Sparlin / @lewis_sparlin

12/20/2016 at 07:40PM

8
#2226 - Jon McClennon / @mcclennon19

12/21/2016 at 09:54AM

8
#2227 - Marcel Akkerman / @MarcelAkkerman

12/21/2016 at 10:43AM

8
#2228 - Jan Eisenhauer / @EisenhauerJan

12/22/2016 at 01:48AM

8
#2229 - Patrick Ball / @vm_wylbur

12/23/2016 at 06:01AM

8
#2230 - Anakin / @xdxter

12/23/2016 at 06:05AM

8
#2231 - Igor Doroshenko / @Vernittem

12/25/2016 at 03:15PM

8
#2232 - Ryugo Abe / @Ryu8179

12/27/2016 at 07:55AM

8
#2233 - Tyler Ewing / @tewing10

12/29/2016 at 01:58AM

8
#2234 - golfing cobra / @golfingkobra

12/30/2016 at 10:21AM

8
#2235 - Sven R / @Sven73de

12/30/2016 at 01:47PM

8
#2236 - Abc Def / @phweiss1

01/03/2017 at 03:51PM

8
#2237 - Benoît Labaere / @b_labaere

01/04/2017 at 08:19PM

8
#2238 - Nxgr / @Nxgr_l

01/05/2017 at 03:51PM

8
#2239 - Social Botolinum / @SocialBot4

01/06/2017 at 08:07AM

8
#2240 - ILOGIKAL GRIT / @ilogikalgrit

01/06/2017 at 04:32PM

8
#2241 - Alexey Filonenko / @BrightOne_LS

01/07/2017 at 07:12PM

8
#2242 - Hans Yelek / @hans_yelek

01/08/2017 at 08:32PM

8
#2243 - Damien BRY ⚡️ / @orbmancer

01/11/2017 at 02:12PM

8
#2244 - Air Quality Test 8 / @AirQualityTest8

01/15/2017 at 09:56AM

8
#2245 - terhorst / @terhorst

01/20/2017 at 03:24AM

8
#2246 - Ítalo Vieira / @italogvieira

01/21/2017 at 05:24PM

8
#2247 - setNull / @dadaojiemo

01/25/2017 at 01:42AM

8
#2248 - racffee / @RacffedeRacffee

01/29/2017 at 08:42AM

8
#2249 - Charlier / @Charlicanman

01/29/2017 at 09:12AM

8
#2250 - Avimgolfer / @l718232

01/30/2017 at 03:34PM