From f1bd788f622cdc58f24c8062ff028fb98f312367 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 27 Sep 2010 02:53:48 +0200 Subject: vim_mode: Display count, operator, movement in statusbar. --- vim-mode/vim_mode.pl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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(); -- cgit v1.2.3