Monday, March 10, 2014

Re: Jump to previous cursor position in existing window

> ----- Original Message -----
> From: Paul Jolly
> Sent: 03/09/14 01:53 PM
> To: vim_use@googlegroups.com
> Subject: Jump to previous cursor position in existing window
>
> Hi all,
>
> This question was previously posted on #vim but I can't seem to maintain a good connection right now.
>
> Imagine a.txt open and b.txt open in a split below, with the focus in the b.txt window. The previous item in the :jumps list is a location in a.txt. If I hit <C-o> with the cursor in the b.txt window what happens is that the a.txt file is opened in the b.txt split.... is there any way to instead switch focus to the a.txt split and then set the cursor position?
>
> Thanks

I was able to press the keys `` (backtick pressed two times) in order to go
back to the last cursor position while in a split window. The cursor stays in
the same window. Map it to another key if the backtick key is a stretch for you.


>
> --
> --
> 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.

--
--
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: