Wednesday, March 28, 2012

Re: map colon

On 2012-03-28, Tarlika Elisabeth Schmitz wrote:
> I'm getting a tad fed up with having to press <shift> for colon
> commands.
>
> I have seen this suggested:
> map ; :
>
> But someone commented: "Don't map ":" to anything, it's a bad idea! "

map ; :

is not mapping ':' to anything; it is mapping something to ':'. I
don't think there is any problem with mapping something to ':', as
your mapping does, except for the loss of the ';' functionality.

On the other hand, mapping ':' to something is likely to cause
problems. You might have a plugin with a mapping defined without
"nore" that includes ':' in the rhs. That ':' would then be
replaced by the rhs of your ':' mapping, with odd results.

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: