aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-30 23:27:42 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-30 23:28:12 +0000
commit353aa8969ed5677c057b2670bf7178a97665fbb5 (patch)
tree3bae5b68afa428c849818ef4f2755bce3b008d85 /vim-mode/vim_mode.pl
parentvim_mode: Add :ls and :buffers. (diff)
downloadirssi-scripts-353aa8969ed5677c057b2670bf7178a97665fbb5.tar.gz
irssi-scripts-353aa8969ed5677c057b2670bf7178a97665fbb5.zip
vim_mode: Add :bn :bp.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl10
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;