XVim2 icon indicating copy to clipboard operation
XVim2 copied to clipboard

Xcode 11: `:vsp` and `:q`

Open sashaweiss opened this issue 5 years ago • 3 comments

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 avatar Oct 01 '19 17:10 sashaweiss

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?

sashaweiss avatar Oct 01 '19 17:10 sashaweiss

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.

meieri avatar Oct 23 '19 23:10 meieri

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

ryanmeisters avatar Oct 24 '19 02:10 ryanmeisters