XVimProject / XVim2

Vim key-bindings for Xcode 9
MIT License
2.3k stars 181 forks source link

Xcode 11: `:vsp` and `:q` #253

Open sashaweiss opened 5 years ago

sashaweiss commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

ryanmeisters commented 5 years ago

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