Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread Yegappan Lakshmanan
Hi, On 2/23/07, Andy Wokula <[EMAIL PROTECTED]> wrote: In my vimrc I have (for gVim 6.4, gVim 7.0) :imap u Each "u" goes back one line of text in the undo history. Note the "imap" instead of "inoremap". This way abbreviations still work. Does it say in the help that if a key is mapped

Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread Andy Wokula
A.J.Mechelynck schrieb: Andy Wokula wrote: There is another strange detail about u In my vimrc I have (for gVim 6.4, gVim 7.0) :imap u Each "u" goes back one line of text in the undo history. Note the "imap" instead of "inoremap". This way abbreviations still work. For the strange part: T

Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread A.J.Mechelynck
Andy Wokula wrote: Yakov Lerner schrieb: On 2/20/07, Tim Chase <[EMAIL PROTECTED]> wrote: I'm trying to find a good way to remap control+U in insert-mode so that it begins an undo-block. There are times when type control+U in insert-mode and it doesn't do what I intend, or I want to undo it, o

Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread Andy Wokula
Yakov Lerner schrieb: On 2/20/07, Tim Chase <[EMAIL PROTECTED]> wrote: I'm trying to find a good way to remap control+U in insert-mode so that it begins an undo-block. There are times when type control+U in insert-mode and it doesn't do what I intend, or I want to undo it, only to find that an

Re: Marking an undo-block before ^U in insert-mode

2007-02-21 Thread Yegappan Lakshmanan
Hi, On 2/20/07, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: Tim Chase wrote: >>> :help >>> >>> but rather is being interpreted as "less-than, en, oh, pee, >>> greater-than" and the "en" portion of it is trying to look for the >>> last regexp. >> >> Try (untested): >> >> :inoremap Nop> > > Th

Re: Marking an undo-block before ^U in insert-mode

2007-02-20 Thread A.J.Mechelynck
Tim Chase wrote: :help but rather is being interpreted as "less-than, en, oh, pee, greater-than" and the "en" portion of it is trying to look for the last regexp. Try (untested): :inoremap Nop> This is the behavior I _see_, but that I understood having "" should send a "no-op" keyc

Re: Marking an undo-block before ^U in insert-mode

2007-02-20 Thread Tim Chase
:help but rather is being interpreted as "less-than, en, oh, pee, greater-than" and the "en" portion of it is trying to look for the last regexp. Try (untested): :inoremap Nop> This is the behavior I _see_, but that I understood having "" should send a "no-op" keycode. Thus, I

Re: Marking an undo-block before ^U in insert-mode

2007-02-20 Thread Hari Krishna Dara
On Tue, 20 Feb 2007 at 9:13am, Tim Chase wrote: > >> I'm trying to find a good way to remap control+U in insert-mode > >> so that it begins an undo-block. There are times when type > >> control+U in insert-mode and it doesn't do what I intend, or I > >> want to undo it, only to find that an "u"n

Re: Marking an undo-block before ^U in insert-mode

2007-02-20 Thread Christian Ebert
* Tim Chase on Tuesday, February 20, 2007 at 09:13:17 -0600: > I'm still not 100% sure why I got this craziness: > >>> inoremap >>> >>> This gives me a crazy >>> >>> "E486: Pattern not found: insert" >>> >>> which, I haven't searched for the word "insert" so this one makes >>> me scratch my h

Re: Marking an undo-block before ^U in insert-mode

2007-02-20 Thread Tim Chase
I'm trying to find a good way to remap control+U in insert-mode so that it begins an undo-block. There are times when type control+U in insert-mode and it doesn't do what I intend, or I want to undo it, only to find that an "u"ndo doesn't solve the problem. I know that transitioning out of inser

Re: Marking an undo-block before ^U in insert-mode

2007-02-20 Thread Yakov Lerner
On 2/20/07, Tim Chase <[EMAIL PROTECTED]> wrote: I'm trying to find a good way to remap control+U in insert-mode so that it begins an undo-block. There are times when type control+U in insert-mode and it doesn't do what I intend, or I want to undo it, only to find that an "u"ndo doesn't solve th

Marking an undo-block before ^U in insert-mode

2007-02-20 Thread Tim Chase
I'm trying to find a good way to remap control+U in insert-mode so that it begins an undo-block. There are times when type control+U in insert-mode and it doesn't do what I intend, or I want to undo it, only to find that an "u"ndo doesn't solve the problem. I know that transitioning out of insert