Is there a way of disabling NERDTree when opening a file? When I open a file in mvim (using --remote-silent
) and a NERDtree window is currently active, the file will open in that (narrow) window. How can I configure Vim to select another window if available and to open one if not?
Disable NERDTree window when opening file in Vim
574 views Asked by chopper At
1
There's no way to intercept the
--remote-silent
; you have to send explict commands to open the file with--remote-send
instead. There, you can encode logic to deal with the NERDTree window, e.g. to move to the previous one if it is active: