diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-30 23:27:42 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-30 23:28:12 +0000 |
commit | 353aa8969ed5677c057b2670bf7178a97665fbb5 (patch) | |
tree | 3bae5b68afa428c849818ef4f2755bce3b008d85 | |
parent | vim_mode: Add :ls and :buffers. (diff) | |
download | irssi-scripts-353aa8969ed5677c057b2670bf7178a97665fbb5.tar.gz irssi-scripts-353aa8969ed5677c057b2670bf7178a97665fbb5.zip |
vim_mode: Add :bn :bp.
-rw-r--r-- | vim-mode/vim_mode.pl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index cb2a182..f0ad409 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -18,7 +18,7 @@ # * repeat ftFT: ; , # * change/change/yank line: cc dd yy S # * Combinations like in Vi, e.g. d5fx -# * window selection: :b<num>, :b#, :b <match-str> +# * window selection: :b<num>, :b#, :b <match-str> :bn :bp # # * special registers: "* "+ (contain irssi's cut-buffer) # @@ -914,7 +914,13 @@ sub cmd_ex_command { print "New line is: $line" if DEBUG; _input($line); - + # :bn + } elsif ($arg_str eq 'bn') { + Irssi::command('window next'); + # :bp + } elsif ($arg_str eq 'bp') { + Irssi::command('window previous'); + # :b[buffer] {args} } elsif ($arg_str =~ m|^b(?:uffer)?\s*(.+)$|) { my $window; my $item; |