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

Xcode 11: :vsp and :q #253

Open
sashaweiss opened this issue Oct 1, 2019 · 3 comments
Open

Xcode 11: :vsp and :q #253

sashaweiss opened this issue Oct 1, 2019 · 3 comments

Comments

@sashaweiss
Copy link

First off, thank you so much for maintaining this!

Recently upgraded to Xcode 11, built Xvim2 off develop and everything works fine. I noticed, though, that Xcode 11 changes the default split behavior to only show "Counterpart" files, and if you want to have two editors side-by-side you have to click this button:
image

Now, running :vsp opens the "Counterpart" viewer, and there's no way to configure that viewer to "Manual" mode as I did in Xcode 10.x. Additionally, it looks like running :q now closes my entire tab, not just the current editor.

Do you have any suggestions on how to recover the previous behavior, either through configuration or by changes in Xvim? Thanks in advance.

@sashaweiss
Copy link
Author

Update: looks like I can get this behavior back by doing :xcmenucmd Open in Next Editor and :xcmenucmd Close Editor. Is there any way for me to map :vsp and :q to to those commands, or to define new Ex commands?

@meieri
Copy link

meieri commented Oct 23, 2019

You can remap Ex commands with :command foo bar. See :help command for more information. I have nmap <space>o :xcmenucmd Open Quickly...<CR> in my .xvimrc, and that is working just fine.

@ryanmeisters
Copy link

@meieri what happens when you do :help command? It doesn't seem to do anything for me in Xcode 11.1

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

3 participants