39442Re: Where did escape go?
- Apr 30, 2003Benji Fisher wrote:
> Dirk Schenkewitz wrote:P.S. After the "gq", vim is in Operator-pending mode, so one solution is to use
>> "noremap a :highlight Normal guibg=MistyRose<cr>a"
>> has this "<cr>" in it. That might affect something, but I'm just
>> guessing, and even if it's true I have no idea how to get around it.
>> I'm merely a bloody beginner to vim...
>> Can anyone of the experts tell us, please?
> Yes, that's the problem. Now, when you type "gqap" (starting in
> Normal mode) it gets expanded to "gq:highlight Normal
> guibg=MistyRose<cr>ap" and the : aborts the gq command.
an :nnoremap (applies only in Normal mode) instead of a :noremap (Normal,
Visual, and Operator-pending modes).
HTH --Benji Fisher
- << Previous post in topic Next post in topic >>