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

Re: Issue 155 in vim: feature request: Option for keeping cursor position while scrolling by mouse

Expand Messages
  • John Little
    ... This issue is not about the mouse, and if vim s philosophy was that you should never use the mouse, there d be no mouse support! Rather, it s that vim
    Message 1 of 2 , Jul 22, 2013
    • 0 Attachment
      On Tuesday, July 23, 2013 5:49:23 AM UTC+12, v...@... wrote:
      > New issue 155 by gade...@...: feature request: Option for keeping
      > cursor position while scrolling by mouse
      > http://code.google.com/p/vim/issues/detail?id=155
      >
      > Right now, vim always shows cursor in viewable part of window by changing
      > its position as viewport changes, even when user is scrolling by mouse
      > wheel. Personally, I hate this. I understand that vim's philosophy is that
      > you should never use a mouse...

      This issue is not about the mouse, and if vim's philosophy was that you should never use the mouse, there'd be no mouse support! Rather, it's that vim always shows the current cursor position in a window, so if you scroll the window, however, the current cursor position is moved to keep it in the window.

      That's the way vim works presently, and I imagine it would be difficult to add this feature, but IMO it has some merit. There'd have to be a clear specification of what happens if the current position isn't displayed, and a text changing command occurred.

      Vim has many ways to move the cursor, perhaps setting a mark before scrolling would get you back to where you want. I'd expect there's a plugin that meets your need.

      Regards, John

      --
      --
      You received this message from the "vim_dev" 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_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    Your message has been successfully submitted and would be delivered to recipients shortly.