manny> Because normal-mode commands especially can be concatenated
arbitrarily many times, this is not feasible.  If 'vip' gets a name
other than the name it already has ("vip"), what will be the name for
"vipp"?  For "vippp"?  For "vippp"?  For "vipgpgpggipp"?

Your examples support my point, your arbitrary long abbreviations
would be then be readable:
   vip =  :visual(), inner(), block(),
   vippp == visual() inner(), block(), paste(), paste(),
                  or whatever that obscure abbrev means.

And elegantly composable with arguments as in functional programming
(that would be asking for too much from vim at this point).



On 1/12/14, Manuel Ortega <[email protected]> wrote:
> On Sat, Jan 11, 2014 at 11:36 PM, Mosh <[email protected]> wrote:
>
>> All builtin vim operations should be named for 2 reasons:
>>
>> 1.  if you map a key, then the original command binding is unavailable:
>>     example: :map [ 0    ..
>>     Now how do I call  [c in diff mode; [c doesn't have a name.
>>
>
> Use ':normal' with the exclamation point, and create a new mapping.
>
>
>
>
>
>
>> 2. scripts become un-maintainable and unreadable to others:
>>     simple example. ".....exe normal vip ......"
>>     :h vip
>>     Vim help doesn't know what vip is is,
>>     only google can help you here.
>>
>
> Because normal-mode commands especially can be concatenated arbitrarily
> many times, this is not feasible.  If 'vip' gets a name other than the name
> it already has ("vip"), what will be the name for "vipp"?  For "vippp"?
>  For "vippp"?  For "vipgpgpggipp"?
>
> Anyway, the fact that in the example there is "normal", that tells you that
> 'vip' is a normal mode command.  So do ":h v".  Then do ":h ip".
>
> -Manny
>
> --
> --
> You received this message from the "vim_dev" 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui