[gnome-builder/gnome-builder-3-18] vim: Add a 'bdelete' command
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] vim: Add a 'bdelete' command
- Date: Thu, 15 Oct 2015 14:43:37 +0000 (UTC)
commit 5d346bed6a3c9ebe03820e2696b1429014a29e41
Author: Damien Lespiau <damien lespiau intel com>
Date: Wed Oct 14 23:40:35 2015 +0100
vim: Add a 'bdelete' command
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.
https://bugzilla.gnome.org/show_bug.cgi?id=756598
plugins/command-bar/gb-vim.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/command-bar/gb-vim.c b/plugins/command-bar/gb-vim.c
index 61d3402..2fd759b 100644
--- a/plugins/command-bar/gb-vim.c
+++ b/plugins/command-bar/gb-vim.c
@@ -876,6 +876,7 @@ invalid_request:
}
static const GbVimCommand vim_commands[] = {
+ { "bdelete", gb_vim_command_quit, NULL },
{ "bnext", gb_vim_command_bnext , NULL},
{ "bprevious", gb_vim_command_bprevious, NULL },
{ "buffers", gb_vim_command_buffers, NULL },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]