From b332c6ab9c8b94a124b36880e42b4c2deef1e4f5 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 1 Oct 2010 22:38:40 +0200 Subject: vim_mode: Add :bd. --- vim-mode/vim_mode.pl | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3