After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 756598 - vim: Add a 'bdelete' command
vim: Add a 'bdelete' command
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: editor
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-14 22:55 UTC by Damien Lespiau
Modified: 2015-10-14 23:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vim: Add a 'bdelete' command (1.25 KB, patch)
2015-10-14 22:55 UTC, Damien Lespiau
committed Details | Review

Description Damien Lespiau 2015-10-14 22:55:34 UTC
In vim, the current buffer can be closed with :bdelete (or :bd or
:bdel). That looks what the quit command does right now.

The behaviour doesn't exactly match vim's when buffers contain unsaved
modifications. Vim will ask you to save before :bd or to add '!' at the
end to close the buffer without saving the modifications.

I'm not entirely convinced builder needs to match this behaviour
exactly, having :bd doing something useful is a nice start in any case,
I believe.
Comment 1 Damien Lespiau 2015-10-14 22:55:39 UTC
Created attachment 313342 [details] [review]
vim: Add a 'bdelete' command
Comment 2 Christian Hergert 2015-10-14 23:02:19 UTC
LGTM

Attachment 313342 [details] pushed as fa26694 - vim: Add a 'bdelete' command