diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-07 01:51:13 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-07 01:51:13 +0000 |
commit | ba13b09ac6112f9d6c69705b1783fd5ffdf9503b (patch) | |
tree | 0e3b83ed8377c449d806880204cb3c83d25ec690 /vim-mode/vim_mode.pl | |
parent | vim_mode: Fix function names. (diff) | |
download | irssi-scripts-ba13b09ac6112f9d6c69705b1783fd5ffdf9503b.tar.gz irssi-scripts-ba13b09ac6112f9d6c69705b1783fd5ffdf9503b.zip |
vim_mode: Add comments before each code section.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r-- | vim-mode/vim_mode.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index e1bfcca..fe155e2 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -417,6 +417,8 @@ sub script_is_loaded { vim_mode_init(); +# INSERT MODE COMMANDS + sub insert_ctrl_r { my ($key) = @_; @@ -428,6 +430,8 @@ sub insert_ctrl_r { } +# COMMAND MODE OPERATORS + sub cmd_operator_c { my ($old_pos, $new_pos, $move, $repeat) = @_; @@ -518,6 +522,7 @@ sub _get_pos_and_length { return ($old_pos, $length); } +# COMMAND MODE COMMANDS sub cmd_h { my ($count, $pos, $repeat) = @_; @@ -1343,6 +1348,8 @@ sub _fix_input_pos { } +# EX MODE COMMANDS + sub cmd_ex_command { my $arg_str = join '', @ex_buf; if ($arg_str =~ m|^s/(.+)/(.*)/([ig]*)|) { @@ -1484,6 +1491,8 @@ sub _matching_windows { } +# STATUS ITEMS + # vi mode status item. sub vim_mode_cb { my ($sb_item, $get_size_only) = @_; @@ -1535,6 +1544,8 @@ sub b_windows_cb { } +# INPUT HANDLING + sub got_key { my ($key) = @_; |