Saturday, August 4, 2012

Re: Good idea to remap s to $?

On 2012-08-04, Daan wrote:
> > It's entirely up to you of course! I use 's' a lot (particular in the
> > form of e.g. 3s to change three letters). It has the (significant in
> > my book) advantage over 3xi that if I then use '.' to repeat, it
> > repeats the change, not just the insertion. [...]
>
> 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.

Beyond warning you against doing anything stupid or that we think
you might regret, it doesn't really matter what we think. You're
not suggesting a change to Vim itself but to your environment.
Whether the change is of net benefit to you depends on your habits
and work flow, which may not be the same as ours.

If you don't commonly use s, then there is no loss to you by
remapping it. I never use , for it's primary function, so I use it
as the first character of most of my mappings. Other people on this
list frequently use the , function, so my mappings would not work
well for them.

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

There is really only one way to find out: map it and try it for a
while.

Regards,
Gary

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