Вопрос

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.

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top