Monday, December 7, 2015

Re: Moving twixt vsplit windows

On Monday, December 7, 2015 at 8:47:37 AM UTC-6, Jan wrote:
> I've two vsplit windows open, the active line number in window A is 15, and in window B it's 5, with the cursor currently in window A. Is it possible to move to window B straight onto line 15 there, in effect just hopping directly horizontally in window B? I ask this because, with a diffsplit between two large files, it can be disorienting switching between windows when the active line is in wildly different locations across files, when I just want to go straight to the same location in the other window.

This should be the default behavior. What version of Vim are you using? The 'cursorbind' option does this, and it gets enabled by default in diff mode.

'cursorbind' was added between Vim 7.2 and 7.3 sometime according to :help version7.

--
--
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@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: