From c967d19adca4d812d21cff3bef4f496697a30707 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Mon, 18 Apr 2011 16:08:31 +0100 Subject: vim-mode/vim_mode: all bullet points finally fired. I hope. --- vim-mode/vim_mode.pl | 134 +++++++++++++++++++++++++++++++++------------------ 1 file changed, 88 insertions(+), 46 deletions(-) (limited to 'vim-mode/vim_mode.pl') diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index d68f974..8132ebd 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -33,9 +33,9 @@ disabled in irssi < 0.8.13: =over 4 -=item C C (only with count, they work fine without count in older versions) +=item * C C (only with count, they work fine without count in older versions) -=item C, C +=item * C, C =back @@ -75,7 +75,7 @@ Currently Supported ex-commands: =over 4 -=item C<:map> +=item * C<:map> =back @@ -89,47 +89,88 @@ It supports most commonly used command mode features: =over 2 -=item Insert/Command mode. C and C enter command mode. C allows to use C as Escape (any other character can be used as well). +=item * Insert/Command mode. -=item Cursor motion: CSpaceE EBSE f t F T> +C and C enter command mode. C allows +to use C as Escape (any other character can be used as well). -=item History motion: 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 motion: -=item Cursor word motion: C +CSpaceE EBSE f t F T> -=item Word objects (only the following work yet): C +=item * History motion: -=item Yank and paste: C +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 Change and delete: C +=item * Cursor word motion: -=item Delete at cursor: C +C -=item Replace at cursor: C +=item * Word objects (only the following work yet): -=item Insert mode: C +C -=item Switch case: C<~> +=item * Yank and paste: -=item Repeat change: C<.> + C -=item Repeat C +=item * Change and delete: -=item Registers: C<"a-"z "" "0 "* "+ "_> (black hole) +C -=item Line-wise shortcuts: C
+=item * Delete at cursor: -=item Shortcuts: C +C -=item Scroll the scrollback buffer: C +=item * Replace at cursor: -=item Switch to last active window: C +C -=item Switch split windows: +=item * Insert mode: -=item Undo/Redo: C +C + +=item * Switch case: + +C<~> + +=item * Repeat change: + +C<.> + +=item * Repeat + +C + +=item * Registers: + +C<"a-"z "" "0 "* "+ "_> (black hole) + +=item * Line-wise shortcuts: + +C
+ +=item * Shortcuts: + +C + +=item * Scroll the scrollback buffer: + +C + +=item * Switch to last active window: + +C + +=item * Switch split windows: + + + +=item * Undo/Redo: + +C =back @@ -139,13 +180,13 @@ Counts and combinations work as well, e.g. C or C<3iabcEescE>. Cou =over 4 -=item Appending to register with C<"A-"Z> +=item * Appending to register with C<"A-"Z> -=item C<""> is the default yank/delete register. +=item * C<""> is the default yank/delete register. -=item C<"0> contains the last yank (if no register was specified). +=item * C<"0> contains the last yank (if no register was specified). -=item The special registers C<"* "+> both contain irssi's internal cut-buffer. +=item * The special registers C<"* "+> both contain irssi's internal cut-buffer. =back @@ -155,7 +196,7 @@ The following insert mode mappings are supported: =over 4 -=item Insert register content: Ctrl-R x (where x is the register to insert) +=item * Insert register content: Ctrl-R x (where x is the register to insert) =back @@ -165,7 +206,7 @@ Ex-mode (activated by C<:> in command mode) supports the following commands: =over 4 -=item Command History: +=item * Command History: CuparrowE> - cycle backwards through history @@ -173,7 +214,7 @@ CdownarrowE> - cycle forwards through history C<:eh> - show ex history -=item Switching buffers: +=item * Switching buffers: C<:[N]b [N]> - switch to channel number @@ -189,41 +230,41 @@ C<:[N]bn[ext] [N]> - switch to next window C<:[N]bp[rev] [N]> - switch to previous window -=item Close window: +=item * Close window: C<:[N]bd[elete] [N]> -=item Display windows: +=item * Display windows: C<:ls>, C<:buffers> -=item Display registers: +=item * Display registers: C<:reg[isters] {args}>, C<:di[splay] {args}> -=item Display undolist: +=item * Display undolist: C<:undol[ist]> (mostly used for debugging) -=item Source files: +=item * Source files: C<:so[urce]> - only sources vim_moderc at the moment, F<{file}> not supported -=item Mappings: +=item * Mappings: C<:map> - display custom mappings -=item Save mappings: +=item * Saving mappings: C<:mkv[imrc][!]> - like in Vim, but [file] not supported -=item Substitute: +=item * Substitution: -C<:s///> - I and I are supported as flags, only /// can be used as - separator, uses Perl regex instead of Vim regex +C<:s///> - I and I are supported as flags, only C can be used as +eparator, and it uses Perl regex syntax instead of Vim syntax. -=item Settings: +=item * Settings: C<:se[t]> - display all options @@ -352,6 +393,7 @@ or contact rudi_s or shabble on irc.freenode.net (#irssi and #irssi_vim) =head1 AUTHORS Copyright E 2010-2011 Tom Feist Cshabble+irssi@metavore.orgE> and + Copyright E 2010-2011 Simon Ruderich Csimon@ruderich.orgE> =head1 THANKS @@ -360,11 +402,11 @@ Particular thanks go to =over 4 -=item estragib: a lot of testing and many bug reports and feature requests +=item * estragib: a lot of testing and many bug reports and feature requests -=item iaj: testing +=item * iaj: testing -=item tmr: explaining how various bits of vim work +=item * tmr: explaining how various bits of vim work =back -- cgit v1.2.3