From bd3b69440332ea5785c53df22bec46597198ef2d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 26 Sep 2010 23:23:41 +0200 Subject: vim_mode: Add S. --- vim-mode/vim_mode.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3