aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-26 21:23:41 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-26 21:24:01 +0000
commitbd3b69440332ea5785c53df22bec46597198ef2d (patch)
tree1c3fd54192eb48c9f3c91563717df1f36bab2ecc /vim-mode/vim_mode.pl
parentvim_mode: Add C D. (diff)
downloadirssi-scripts-bd3b69440332ea5785c53df22bec46597198ef2d.tar.gz
irssi-scripts-bd3b69440332ea5785c53df22bec46597198ef2d.zip
vim_mode: Add S.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 3641d0a..cb4d9b8 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -19,7 +19,6 @@
#
# TODO:
# * /,?,n to search through history (like history_search.pl)
-# * S = 0c$
# * ^ (first non-whitespace on line)
# * Fix I = ^i
# * u = undo (how many levels, branching?!) redo?
@@ -683,6 +682,13 @@ sub handle_command {
$movement .= $char;
}
+ # S is an alias for cc.
+ if (!$movement and !$operator and $char eq 'S') {
+ print "Changing S to cc" if DEBUG;
+ $char = 'c';
+ $operator = 'c';
+ }
+
if (!$movement && ($char =~ m/[1-9]/ ||
($numeric_prefix && $char =~ m/[0-9]/))) {
print "Processing numeric prefix: $char" if DEBUG;