Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the correct behavior of "previous window" (C-\)? #257

Open
ywpkwon opened this issue Apr 20, 2020 · 2 comments
Open

What is the correct behavior of "previous window" (C-\)? #257

ywpkwon opened this issue Apr 20, 2020 · 2 comments

Comments

@ywpkwon
Copy link

ywpkwon commented Apr 20, 2020

Thanks for this great plugin!!

Let's say 3 windows (2 tmux panes {shell, vim}, and vim split).

|-----------------|
|    shell        |
|-----------------|
|  vim buffer1    |
| - - - - - - - - |
|  vim buffer2    |
|-----------------|

C-{hjkl} works well for me, but I'm wondering about C-\.

Let's say I'm working on buffer1, and then buffer2.
C-\ will go back to buffer1.
C-\ will go again to buffer2.

At this moment,
[case1] Hitting C-\ will go back to buffer1

[case2] Instead, with the mouse (or tmux <leader>q1), I jump to shell.
I want to work again, so C-\ will go back to buffer2.
Up to here, it worked as expected.

So, now at buffer2, what should happen when hitting C-\ here?
Shouldn't it go back to the shell?

But in my case, it goes to buffer1 as if it's the [case1] (the previous split inside vim). Is this intended or my setting is wrong?

@christoomey
Copy link
Owner

Thanks for the kind words, @ywpkwon! Hmm, I'll be honest that this functionality is some of the subtler stuff and I'm frankly less familiar with it. I wonder if the usage of the mouse is causing the disconnect?

@ywpkwon
Copy link
Author

ywpkwon commented Apr 21, 2020

But what if the jump comes from tmux <leader>q1? (<leader>q displays numbers for each pane and let you jump.)

My point is that, once focus comes from outside vim to one of vim splits, I feel like "c-\" only switches between vim splits instead of going back to outside vim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants