diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-01 20:38:40 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-01 20:38:40 +0000 |
commit | b332c6ab9c8b94a124b36880e42b4c2deef1e4f5 (patch) | |
tree | 52b90eb872ec841f4b66009fc088ba1d3689a905 | |
parent | vim_mode: Fix gE in first word on line. (diff) | |
download | irssi-scripts-b332c6ab9c8b94a124b36880e42b4c2deef1e4f5.tar.gz irssi-scripts-b332c6ab9c8b94a124b36880e42b4c2deef1e4f5.zip |
vim_mode: Add :bd.
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 4 |
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; |