diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-26 21:23:41 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-26 21:24:01 +0000 |
commit | bd3b69440332ea5785c53df22bec46597198ef2d (patch) | |
tree | 1c3fd54192eb48c9f3c91563717df1f36bab2ecc /vim-mode/vim_mode.pl | |
parent | vim_mode: Add C D. (diff) | |
download | irssi-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.pl | 8 |
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; |