1
chemzqm 2017 年 1 月 9 日
能不能多花点时间把问题描述清楚?
|
2
rupert OP @chemzqm
我需要写个东西,在 vimrc 做个流程控制,就是 if .. else 流程判断, if (NERDTree_is_open) else ... 这样 找文档都没有看到 NERDTree_is_open 这个状态的写法,就不知道你们有没有写过类似的。 |
3
bp0 2017 年 1 月 9 日
在 google 上搜索一下 NERDTree 的自动关闭,也许有你想要的东西。
|
4
chemzqm 2017 年 1 月 9 日
它默认不会自动打开的啊,除非你自己做了配置,要怎么判定还要看你配置怎么写的
|
5
iCyMind 2017 年 1 月 9 日
bufdo, 然后再检查每个 buffer 的 filetype 等不等于 nerdtree?
|
6
pright 2017 年 1 月 9 日 if exists("t:NERDTreeBufName")
" NERDTree is open else " NERDTree is closed endif |
8
yuuko 2017 年 1 月 9 日
if g:NERDTree.IsOpen()
" open else " close endif |