Open file from NERDtree in specific window (or last active)

前端 未结 1 770
时光说笑
时光说笑 2021-02-08 19:20

In VIM I\'ve got 4 windows opened and a NERD tree like this: \"screenshot\" So, whenever I try to open the file from NERD,

相关标签:
1条回答
  • 2021-02-08 20:10

    I'm using NERD tree 4.1.0 on Vim 7.2 and NERDTree does open files in the last active window by default.

    From the docs:

    Default key: o

    Map option: NERDTreeMapActivateNode

    Applies to: files and directories.

    If a file node is selected, it is opened in the previous window.

    But hitting enter when the file is selected has the same effect.

    0 讨论(0)
提交回复
热议问题