aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-27 00:53:48 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-27 00:53:48 +0000
commitf1bd788f622cdc58f24c8062ff028fb98f312367 (patch)
tree6e8ccf2027992f37f0d3eaffea224cdffbce0591 /vim-mode
parentvim_mode: G with no count goes to the last window. (diff)
downloadirssi-scripts-f1bd788f622cdc58f24c8062ff028fb98f312367.tar.gz
irssi-scripts-f1bd788f622cdc58f24c8062ff028fb98f312367.zip
vim_mode: Display count, operator, movement in statusbar.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 925c4a6..38c1aa9 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -669,6 +669,19 @@ sub vim_mode_cb {
$mode_str = '%_Ex%_';
} else {
$mode_str = '%_Command%_';
+ if ($numeric_prefix or $operator or $movement) {
+ $mode_str .= ' (';
+ if ($numeric_prefix) {
+ $mode_str .= $numeric_prefix;
+ }
+ if ($operator) {
+ $mode_str .= $operator;
+ }
+ if ($movement) {
+ $mode_str .= $movement;
+ }
+ $mode_str .= ')';
+ }
}
$sb_item->default_handler($get_size_only, "{sb $mode_str}", '', 0);
}
@@ -909,6 +922,8 @@ sub handle_command {
} elsif ($key == 10) {
_commit_line(_input());
}
+
+ Irssi::statusbar_items_redraw("vim_mode");
}
_stop();