3

I'm trying out VsVim after using ViEmnu.

In ViEmnu :qa will close all tabs, but in VsVim :qa closes Visual Studio. When it is relaunched, all tabs remain open. According to this issue, this is by design.

Is there a way of closing all tabs in VsVim, without closing Visual Studio?

Tom Lokhorst
  • 13,658
  • 5
  • 55
  • 71

2 Answers2

4

At this point in time there is no way. Primarily because there doesn't appear to be a method in Vim for me to emulate in VsVim. If there is I would eagerly like to hear about it so that I can implement it.

There are plans to implement tabonly though. That is close to the request as it closes all but the current.

https://github.com/jaredpar/VsVim/issues/1131

JaredPar
  • 733,204
  • 149
  • 1,241
  • 1,454
3

I've created an alias to a Visual Studio command to do this.

In the file %HOMEPATH%/.vsvim, I've added the following line:

map <leader>q :vsc Window.CloseAllDocuments<CR>

Now, pressing \q will close all open tabs.

Tom Lokhorst
  • 13,658
  • 5
  • 55
  • 71