[prev in list] [next in list] [prev in thread] [next in thread]
List: vim
Subject: Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)
From: Dominic Evans <oldmanuk () gmail ! com>
Date: 2005-09-28 13:19:58
Message-ID: 2ca5c65a0509280619122afdfd () mail ! gmail ! com
[Download RAW message or body]
Ah ok. As long as theres a reason for it im happy. I'll just have to
retrain myself :)
Cheers Bram,
Dom
On 28/09/05, Bram Moolenaar <Bram@moolenaar.net> wrote:
>
> Dominic Evans wrote:
>
> > I find it most convenient to jump to a line number after specifying
> > the filename e.g.
> > vim main.c +22
> >
> > rather than doing vim +22 main.c
> >
> > The vim commandline seems to allow this to be done in either form.
> > However ':e' requires that you have the line number jump first, i.e.
> > ':e +22 main.c' and doesn't understand having +22 afterwards (':e
> > main.c +22').
> >
> > Is it a big change to allow vim to do this?
>
> The main difference is that on the command line spaces are used to
> separate arguments. Thus "main.c +22" is always two arguments. For the
> ":edit" command the whole line can be the argument. The advantage is
> that you don't have to put a backslash before a space on MS-Windows, the
> disadvantage is that "main.c +22" is a valid file name, even though it's
> an unusual one.
>
> I don't think making an incompatible change is justified. Just type the
> +22 before the file name.
>
> --
> BRIDGEKEEPER: What is your favorite colour?
> LAUNCELOT: Blue.
> BRIDGEKEEPER: Right. Off you go.
> "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
>
> /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
> /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
> \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic