Domanda

I use gvim and I use NERDTree and i'm wondering if there is a way for me to open a file from NERDTree in a new instance / window of VIM? I know how to open in a new tab but I can't figure out how to open it in a completely new window / instance of vim.

È stato utile?

Soluzione

You can launch a file in a separate GVIM instance via this:

:silent execute '! gvim' shellescape(filename, 1)

For Windows, use !start instead of !.


NERDTree has great documentation on how to extend it. See :help NERDTreeKeymapAPI and :help NERDTreeMenuAPI.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top