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

cursor jump

Expand Messages
  • vipin aravind
    abbr FOR for(int I = 0;I
    Message 1 of 4 , Feb 27, 2001
      abbr FOR for(int I = 0;I< 3 ;I++)^M{^M}^[O makes the cursor jump  to between the paranthesis. How do get the cursor to "I" of int I
      thank you                                                                                         vipin
    • vipin aravind
      could u please put out what `[tIR does ??? vipin ... From: Stefan Roemer To: vipin aravind Cc: Vim development
      Message 2 of 4 , Feb 27, 2001
        could u please put out what `[tIR does ???
        vipin
        ----- Original Message -----
        From: Stefan Roemer <roemer@...>
        To: vipin aravind <vipin.aravind@...>
        Cc: Vim development mailing list <vim-dev@...>
        Sent: Wednesday, February 28, 2001 3:08 PM
        Subject: Re: cursor jump


        > On Wed, Feb 28, 2001, vipin aravind wrote:
        > > abbr FOR for(int I = 0;I< 3 ;I++)^M{^M}^[O makes the cursor jump
        > > o between the paranthesis. How do get the cursor to "I" of int I
        >
        > Try the following abbreviation:
        >
        > abbr FOR for(int I = 0;I< 3 ;I++)<cr>{<cr>}<esc>`[tIR
        >
        > Best regards
        >
        > Stefan
        >
        >
        >
      • vipin aravind
        I suppose u r new abbr has problems as it moves to the start of f in for and that looks bit not logical, thank you vipin ... From: Stefan Roemer
        Message 3 of 4 , Feb 27, 2001
          I suppose u'r new abbr has problems as it moves to the start of 'f' in
          for and that looks bit not logical,
          thank you
          vipin
          ----- Original Message -----
          From: Stefan Roemer <roemer@...>
          To: vipin aravind <vipin.aravind@...>
          Cc: Vim development mailing list <vim-dev@...>
          Sent: Wednesday, February 28, 2001 3:42 PM
          Subject: Re: cursor jump


          > On Wed, Feb 28, 2001, vipin aravind wrote:
          > > > On Wed, Feb 28, 2001, vipin aravind wrote:
          > > > > abbr FOR for(int I = 0;I< 3 ;I++)^M{^M}^[O makes the cursor jump
          > > > > o between the paranthesis. How do get the cursor to "I" of int I
          > > >
          > > > Try the following abbreviation:
          > > >
          > > > abbr FOR for(int I = 0;I< 3 ;I++)<cr>{<cr>}<esc>`[tIR
          > > could u please put out what `[tIR does ???
          >
          > Certainly.
          >
          > '[ jumps to the start of the inserted text (see ":help `[")
          > tI jumps to the character in front of the first 'I' in that line (':help
          t')
          > R replaces the text
          >
          > Oops, this will only work if you start inserting text in the line where
          you
          > type 'FOR'. So it's much better to use the following macro:
          >
          > abbr FOR for(int I = 0;I< 3 ;I++)<cr>{<cr>}<esc>kktIR
          >
          > Here, 'k' moves the cursor one line up.
          >
          > Hope that helps.
          >
          > Best regards
          >
          > Stefan
          >
          >
          >
        • vipin aravind
          first abr is what I expected thank you vipin ... From: vipin aravind To:
          Message 4 of 4 , Feb 27, 2001
            first abr is what I expected
            thank you vipin
            ----- Original Message -----
            From: vipin aravind <vipin.aravind@...>
            To: <roemer@...>
            Cc: Vim development mailing list <vim-dev@...>
            Sent: Wednesday, February 28, 2001 4:37 AM
            Subject: Re: cursor jump


            > I suppose u'r new abbr has problems as it moves to the start of 'f' in
            > for and that looks bit not logical,
            > thank you
            > vipin
            > ----- Original Message -----
            > From: Stefan Roemer <roemer@...>
            > To: vipin aravind <vipin.aravind@...>
            > Cc: Vim development mailing list <vim-dev@...>
            > Sent: Wednesday, February 28, 2001 3:42 PM
            > Subject: Re: cursor jump
            >
            >
            > > On Wed, Feb 28, 2001, vipin aravind wrote:
            > > > > On Wed, Feb 28, 2001, vipin aravind wrote:
            > > > > > abbr FOR for(int I = 0;I< 3 ;I++)^M{^M}^[O makes the cursor jump
            > > > > > o between the paranthesis. How do get the cursor to "I" of int I
            > > > >
            > > > > Try the following abbreviation:
            > > > >
            > > > > abbr FOR for(int I = 0;I< 3 ;I++)<cr>{<cr>}<esc>`[tIR
            > > > could u please put out what `[tIR does ???
            > >
            > > Certainly.
            > >
            > > '[ jumps to the start of the inserted text (see ":help `[")
            > > tI jumps to the character in front of the first 'I' in that line
            (':help
            > t')
            > > R replaces the text
            > >
            > > Oops, this will only work if you start inserting text in the line where
            > you
            > > type 'FOR'. So it's much better to use the following macro:
            > >
            > > abbr FOR for(int I = 0;I< 3 ;I++)<cr>{<cr>}<esc>kktIR
            > >
            > > Here, 'k' moves the cursor one line up.
            > >
            > > Hope that helps.
            > >
            > > Best regards
            > >
            > > Stefan
            > >
            > >
            > >
            >
            >
          Your message has been successfully submitted and would be delivered to recipients shortly.