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