aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-25 22:00:32 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-25 22:00:32 +0000
commit8bee6895a12e5874784e6d0802cac65a1c6e95ea (patch)
tree65cef2a4c0c231c6de0fa8aa5e3c24a7e73ce70f
parentvim_mode: Also display Ex mode in the statusline. (diff)
downloadirssi-scripts-8bee6895a12e5874784e6d0802cac65a1c6e95ea.tar.gz
irssi-scripts-8bee6895a12e5874784e6d0802cac65a1c6e95ea.zip
vim_mode: Minor documentation update.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index c0514f4..af7366b 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -44,6 +44,9 @@ $VERSION = "1.0.1";
changed => "20/9/2010"
);
+
+# CONSTANTS
+
sub DEBUG () { 1 }
#sub DEBUG () { 0 }
@@ -52,6 +55,8 @@ sub M_INS() { 0 } # insert mode
sub M_EX () { 2 } # extended mode (after a :?)
+# GLOBAL VARIABLES
+
# buffer to keep track of the last N keystrokes following an Esc character.
my @esc_buf;
my $esc_buf_idx = 0;
@@ -279,6 +284,7 @@ sub cmd_ex_command {
}
+# vi mode status item.
sub vim_mode_cb {
my ($sb_item, $get_size_only) = @_;
my $mode_str = '';