From 931b7cfecbd06c59936670ff1ed42f36c4464fdd Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Fri, 22 Apr 2011 03:03:38 +0100 Subject: vim-mode/vim_mode: more doc updates about hooks and sbar items. --- vim-mode/README.pod | 47 +++++++++++++++++++++++++++++------------------ vim-mode/vim_mode.pl | 49 ++++++++++++++++++++++++++++++------------------- 2 files changed, 59 insertions(+), 37 deletions(-) diff --git a/vim-mode/README.pod b/vim-mode/README.pod index dbb7d07..dd3b61a 100644 --- a/vim-mode/README.pod +++ b/vim-mode/README.pod @@ -74,7 +74,14 @@ permanent. B If you would rather have these statusbar items on your prompt line rather than thte window statusbar, please follow these steps. -For I items (that is, after the input field: +For technical reasons, I must occasionally call C, which will remove or deactivate any manually added items on the prompt +statusbar. To get around this, uberprompt provides two command hooks, +C and C. Both of these settings +can contain one (or more, using C commands to be executed when the prompt +is enabled and disabled, respectively. + +For I items (that is, after the input field: =over 4 @@ -88,7 +95,8 @@ For I items (that is, after the input field: =back -For I items (before the prompt): +For I items (before the prompt): + =over 4 @@ -116,6 +124,9 @@ with the following: and then complete stages 3 and 4 as above. Replace the C<-after> and C<-alignment> to suit your location preferences. +B It is also possible to place the items between the prompt and input field, +by specifying C<-after prompt> or C<-before input> as appropriate. + =head3 Expando Variables Vim mode augments the existing Irssi expando (automatic variables) with two @@ -171,11 +182,11 @@ C C moves to the oldest (first) history line. C without a count moves to the current input line, with a count it goes to the I history line (1 is the oldest). -=item * Cursor word motion: +=item * Cursor word motion: C -=item * Word objects (only the following work yet): +=item * Word objects (only the following work yet): C @@ -183,59 +194,59 @@ C C -=item * Change and delete: +=item * Change and delete: C -=item * Delete at cursor: +=item * Delete at cursor: C -=item * Replace at cursor: +=item * Replace at cursor: C -=item * Insert mode: +=item * Insert mode: C -=item * Switch case: +=item * Switch case: C<~> -=item * Repeat change: +=item * Repeat change: C<.> -=item * Repeat +=item * Repeat C -=item * Registers: +=item * Registers: C<"a-"z "" "0 "* "+ "_> (black hole) -=item * Line-wise shortcuts: +=item * Line-wise shortcuts: C
-=item * Shortcuts: +=item * Shortcuts: C -=item * Scroll the scrollback buffer: +=item * Scroll the scrollback buffer: C -=item * Switch to last active window: +=item * Switch to last active window: C -=item * Switch split windows: +=item * Switch split windows: -=item * Undo/Redo: +=item * Undo/Redo: C diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index e2bfed0..7d364a1 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -74,7 +74,14 @@ permanent. B If you would rather have these statusbar items on your prompt line rather than thte window statusbar, please follow these steps. -For I items (that is, after the input field: +For technical reasons, I must occasionally call C, which will remove or deactivate any manually added items on the prompt +statusbar. To get around this, uberprompt provides two command hooks, +C and C. Both of these settings +can contain one (or more, using C commands to be executed when the prompt +is enabled and disabled, respectively. + +For I items (that is, after the input field: =over 4 @@ -88,7 +95,8 @@ For I items (that is, after the input field: =back -For I items (before the prompt): +For I items (before the prompt): + =over 4 @@ -116,6 +124,9 @@ with the following: and then complete stages 3 and 4 as above. Replace the C<-after> and C<-alignment> to suit your location preferences. +B It is also possible to place the items between the prompt and input field, +by specifying C<-after prompt> or C<-before input> as appropriate. + =head3 Expando Variables Vim mode augments the existing Irssi expando (automatic variables) with two @@ -171,11 +182,11 @@ C C moves to the oldest (first) history line. C without a count moves to the current input line, with a count it goes to the I history line (1 is the oldest). -=item * Cursor word motion: +=item * Cursor word motion: C -=item * Word objects (only the following work yet): +=item * Word objects (only the following work yet): C @@ -183,59 +194,59 @@ C C -=item * Change and delete: +=item * Change and delete: C -=item * Delete at cursor: +=item * Delete at cursor: C -=item * Replace at cursor: +=item * Replace at cursor: C -=item * Insert mode: +=item * Insert mode: C -=item * Switch case: +=item * Switch case: C<~> -=item * Repeat change: +=item * Repeat change: C<.> -=item * Repeat +=item * Repeat C -=item * Registers: +=item * Registers: C<"a-"z "" "0 "* "+ "_> (black hole) -=item * Line-wise shortcuts: +=item * Line-wise shortcuts: C
-=item * Shortcuts: +=item * Shortcuts: C -=item * Scroll the scrollback buffer: +=item * Scroll the scrollback buffer: C -=item * Switch to last active window: +=item * Switch to last active window: C -=item * Switch split windows: +=item * Switch split windows: -=item * Undo/Redo: +=item * Undo/Redo: C @@ -2622,7 +2633,7 @@ sub vim_mode_cmd { return $mode_str; } -sub vim_wins_data { +sub vim_wins_data { my $windows = ''; # A little code duplication of cmd_ex_command(), but \s+ instead of \s* so -- cgit v1.2.3