aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 5c07030..d013f11 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -48,6 +48,7 @@
# :buffer {args} (same as :b)
# :bn - switch to next window
# :bp - switch to previous window
+# * Close window: :bd
# * Display windows: :ls :buffers
# * Display registers: :reg[isters] :di[splay] {args}
# * Display undolist: :undol[ist] (mostly used for debugging)
@@ -1133,6 +1134,9 @@ sub cmd_ex_command {
# :bp
} elsif ($arg_str eq 'bp') {
Irssi::command('window previous');
+ # :bd
+ } elsif ($arg_str eq 'bd') {
+ Irssi::command('window close');
# :b[buffer] {args}
} elsif ($arg_str =~ m|^b(?:uffer)?\s*(.+)$|) {
my $window;