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.