Loading ...
Sorry, an error occurred while loading the content.

Re: Somethink like gk/gj in Insert mode?

Expand Messages
  • Jonathon Merz
    ... should do it. -- ... If you had a million Shakespeares, could they write like a monkey?
    Message 1 of 3 , Jun 1, 2001
    • 0 Attachment
      Tomas Valusek wrote:

      > Hello,
      >
      > is there something like gk or gj for insert mode? Id like to move a cursor
      > up/down on display lines rather than physical ones.
      >
      > Thank you.
      >
      > Tomas Valusek
      >

      :imap <UP> <ESC>gka
      :imap <DOWN> <ESC>gja

      should do it.


      --


      -------------------------------------
      If you had a million Shakespeares,
      could they write like a monkey?
    • Douglas L Potts
      ... You might want to use the variants instead of escaping and appending... ... -Doug --
      Message 2 of 3 , Jun 1, 2001
      • 0 Attachment
        On Fri, Jun 01, 2001 at 01:55:04PM -0500 Jonathon Merz wrote:
        > Tomas Valusek wrote:
        >
        > > Hello,
        > >
        > > is there something like gk or gj for insert mode? Id like to move a cursor
        > > up/down on display lines rather than physical ones.
        > >
        > > Thank you.
        > >
        > > Tomas Valusek
        > >
        >
        > :imap <UP> <ESC>gka
        > :imap <DOWN> <ESC>gja
        >
        > should do it.
        You might want to use the <c-o> variants instead of escaping and
        appending...

        :imap <up> <c-o>gk
        :imap <down> <c-o>gj

        -Doug

        --
        *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
        Douglas L. Potts Url: http://www.bigfoot.com/~pottsdl
        "Writing is easy. It's all a matter of staring at a blank piece of paper
        until your forehead bleeds" -Douglas Adams
        *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
      Your message has been successfully submitted and would be delivered to recipients shortly.