diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-30 22:48:56 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-30 23:16:53 +0000 |
commit | 64127c970fea1f7f8caa7986154aafa5cb36a064 (patch) | |
tree | cfb3ef507190303a9f0d204a91e452dc5e9d8054 /vim-mode/vim_mode.pl | |
parent | vim_mode: Remove implemented todo. (diff) | |
download | irssi-scripts-64127c970fea1f7f8caa7986154aafa5cb36a064.tar.gz irssi-scripts-64127c970fea1f7f8caa7986154aafa5cb36a064.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 b484b87..c0dee6a 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -6,7 +6,7 @@ # * cursor motion with: h l 0 ^ $ # * history motion with j k # * cursor word motion with: w b e W B E -# * change/delete: c d C D +# * change/delete: c d C D s # * delete at cursor: x # * replace at cursor: r # * Insert mode at pos: i a @@ -1218,6 +1218,12 @@ sub handle_command_cmd { $movement .= $char; } + # s is an alias for cl. + if (!$movement and !$operator and $char eq 's') { + print "Changing s to cl" if DEBUG; + $char = 'l'; + $operator = 'c'; + } # S is an alias for cc. if (!$movement and !$operator and $char eq 'S') { print "Changing S to cc" if DEBUG; |