Saturday, August 4, 2012

Re: Good idea to remap s to $?

On 08/04/12 18:51, John Little wrote:
> On Saturday, August 4, 2012 11:59:49 PM UTC+12, Daan wrote:
>> I was thinking about remapping s to $, because:
> ...
>> What do you think?
>
> 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.

I've had a reply to the OP pending for a while, and John beat me to
actually pushing <send> on the ideas I wanted to convey. I too
ignored "s" for a long time, but once it became part of my
muscle-memory, I found myself using it on a regular basis.

That said, Vim is a sufficiently malleable editor that, if this is
the way you want it to work, it will bend to your will. I guess I
just don't find typing "$" all that onerous. If I had to make some
functionality easier to type, I'd lean towards remapping something
that has functionality duplicated elsewhere like "+" vs. <cr> in
normal mode (they both do the same thing, and outside of VimGolf, I
don't use either in my day-to-day vimming; likewise the underscore
and minus don't see much use if any in my day-to-day).

-tim



--
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

No comments: