aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
Diffstat (limited to 'vim-mode')
-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 = '';