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

141151Cursor beyond last line

Expand Messages
  • mvxxc@...
    Feb 6, 2014
    • 0 Attachment
      Hello Vim users,

      can someone confirm the following strange procedure to place the cursor beyond
      the last line? Seems like a problem with relative offets used by the
      'scrollbind' option (":h scrollbind-relative").

      (1) Create two windows, split vertically, with following contents.

      Left window:
      100 lines containing "1"
      100 lines containing "-"
      100 lines containing "1"
      100 lines containing "-"
      100 lines containing "1"
      100 lines containing "-"

      Right window:
      50 lines containing "2"
      450 lines containing "-"

      (2) Switch on diff mode for both windows.

      (3) Go to the last line in the left window.

      (4) Change to the right window.

      The cursor is now located one line below the last line in the right window.

      Corresponding commands:
      :exe "norm 50o2\e450o-\eggdd"
      :exe "norm 100o-\e100o1\eggddyG2PG"
      (4) (must be separate)
      :winc l



      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

      You received this message because you are subscribed to the Google Groups "vim_use" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 5 messages in this topic