4477078170
Some will have a "NERDTree" buffer variable and others will not. In the ones that do, getbufvar will return a dictionary. getbufvar will return an empty string from the other buffers. When looping through the buffers, let will throw an error if nt already exists and is a different type than what is trying to be put into it. This easily can be illustrated by these two statements: :let x = "" :let x = {} E706: Variable type mismatch for: x This commit gets rid of the variable before setting it so that the mismatch cannot occur. |
||
---|---|---|
.. | ||
nerdtree | ||
nerdtree.vim |