you would gain:
sp to append what you yanked to the currently line
si to start insert 1 character before the end
[count]s to quickly go down [count]-1 lines and go to the end of that line
sF[char] to find the last [char] on this line
sciw to change the last word on the line
scib to change the last block on line
s[command][upwards motion] to include this entire line in the motion
and also some arguably faster aliases:
cs => C
ds => D
ys => Y
sa => A
s currently doesn't seem very deserving of home row, especially considering its equal to xi or dl anyway. so it seems to me like a cool idea to give it another function.
What do you think?
s is functionally the same as cl, so you would still be able to perform your command (as 3cl or c3l), albeit at the cost of 1 more keypress than with s.
I understand s is useful, but what I want to find out is whether you advanced vimmers think the benefits of saving the keypress for <shift>4 would outweigh the disadvantages of having to do cl instead of s.
> If you find $ hard to get to, you could always map most
> of your suggested benefit specifically, e.g.
>
> nmap <Leader>p $p
That's a good point, although it would only work for $p. Don't you think that all the other things you could more easily do, such as [count]$, si, sF and so on be worth it?
Personally, no, but then I use s on a daily basis. To each their own like I said.
Al
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
I used vi for years, before 'discovering' s. Then I used it intensively when coding; it saves a keystroke and facilitates using a period to repeat the change. Only vim's text objects have reduced my use of s. It appears you haven't
'discovered' s; if you do, you won't think of mapping it, IMO.
Regards, John
You have a good point, and I might try those mappings as an alternative! Personally I've remapped 0 to ^, because you usually want the first non-blank character anyway.