Bug#529087: vim: please implement a --drop-empty option
James Vega
jamessan at debian.org
Thu Jul 30 14:00:57 UTC 2009
tag 529087 wontfix
thanks
On Sun, May 17, 2009 at 07:09:49PM +0200, Francesco Poli (t1000) wrote:
> This option could be named "--drop-empty" or something like that.
> It would work as follows: when vim (or view, or ...) is started with
> this option, any newly created buffer
A buffer is created for every file you tell Vim to open, regardless of
whether the file exists on disk yet or whether the file has any
contents.
> is checked and automatically closed if found to be empty.
>
> This way, my use of View as a pager would automatically exit (with
> 0 exit status, of course, because nothing went wrong) when the output
> of some_command is empty:
>
> $ some_command | view --drop-empty -
>
> [snip]
> This could be useful when you want to edit already existing files,
> without creating new ones, and you do *not* know in advance which
> files exist (among the ones of a given list).
Vim notifies you that the buffer doesn't have a corresponding file on
disk already.
> Could this new feature be implemented?
> Please forward this feature request to upstream, if appropriate.
The feature is of marginal use and can be achieved through scripting.
Tagging the bug as wontfix.
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20090730/820917cb/attachment.pgp>
More information about the pkg-vim-maintainers
mailing list