I'm using Vim 7.4, built using Homebrew on Mac OS X Snow Leopard, and if I try to start Vim from the shell, I see the following error:
$ vim .vimrc
Error detected while processing /Users/matthewdaly/.vim/bundle/nerdtree/plugin/nerdtree/path.vim:
line 3:
E121: Undefined variable: g:NERDTreeSortOrder
E116: Invalid arguments for function index(g:NERDTreeSortOrder, '*')
E15: Invalid expression: index(g:NERDTreeSortOrder, '*')
Error detected while processing /Users/matthewdaly/.vim/bundle/nerdtree/plugin/nerdtree/tree_dir_node.vim:
line 6:
E121: Undefined variable: g:NERDTreeFileNode
E116: Invalid arguments for function copy(g:NERDTreeFileNode)
E15: Invalid expression: copy(g:NERDTreeFileNode)
line 7:
E121: Undefined variable: s:TreeDirNode
E15: Invalid expression: s:TreeDirNode
line 11:
E121: Undefined variable: s:TreeDirNode
line 12:
E121: Undefined variable: b:NERDTreeRoot
E15: Invalid expression: b:NERDTreeRoot
line 13:
E121: Undefined variable: currentNode
E15: Invalid expression: currentNode.parent != {}
line 16:
E133: :return not inside a function
line 17:
E193: :endfunction not inside a function
line 20:
E121: Undefined variable: s:TreeDirNode
line 21:
E121: Undefined variable: s:TreeDirNode
line 22:
E121: Undefined variable: a:0
E15: Invalid expression: a:0 ? a:1 : {}
line 23:
E121: Undefined variable: self
Error detected while processing function nerdtree#renderView..nerdtree#dumpHelp:
line 2:
E121: Undefined variable: b:treeShowHelp
E15: Invalid expression: b:treeShowHelp ==# 1
Error detected while processing function nerdtree#renderView:
line 15:
E121: Undefined variable: g:NERDTreeMinimalUI
E15: Invalid expression: g:NERDTreeMinimalUI == 0
line 20:
E121: Undefined variable: b:NERDTreeShowBookmarks
E15: Invalid expression: b:NERDTreeShowBookmarks
line 25:
E121: Undefined variable: g:NERDTreeMinimalUI
E15: Invalid expression: !g:NERDTreeMinimalUI
line 31:
E121: Undefined variable: b:NERDTreeRoot
E15: Invalid expression: b:NERDTreeRoot.path.str({'format': 'UI', 'truncateTo': winwidth(0)})
line 32:
E121: Undefined variable: header
E116: Invalid arguments for function setline
line 37:
E121: Undefined variable: b:NERDTreeRoot
E15: Invalid expression: b:NERDTreeRoot.renderToString()
line 38:
E353: Nothing in register o
Error detected while processing /Users/matthewdaly/.vim/bundle/nerdtree/plugin/nerdtree/tree_dir_node.vim:
line 25:
E121: Undefined variable: self
line 26:
E193: :endfunction not inside a function
line 34:
E121: Undefined variable: s:TreeDirNode
line 35:
E121: Undefined variable: self
E116: Invalid arguments for function add
line 36:
E121: Undefined variable: self
E15: Invalid expression: self
line 38:
E121: Undefined variable: a:inOrder
E15: Invalid expression: a:inOrder
line 41:
E193: :endfunction not inside a function
line 45:
E121: Undefined variable: s:TreeDirNode
line 46:
E121: Undefined variable: self
line 47:
E193: :endfunction not inside a function
line 51:
E121: Undefined variable: s:TreeDirNode
line 52:
E121: Undefined variable: self
E15: Invalid expression: self.children
line 58:
E193: :endfunction not inside a function
line 70:
E121: Undefined variable: s:TreeDirNode
line 71:
E121: Undefined variable: g:NERDTreeFileNode
E15: Invalid expression: g:NERDTreeFileNode.New(a:path)
line 72:
E121: Undefined variable: self
line 73:
E133: :return not inside a function
line 74:
E193: :endfunction not inside a function
line 81:
E121: Undefined variable: s:TreeDirNode
line 82:
E121: Undefined variable: s:TreeDirNode
line 83:
E121: Undefined variable: a:path
E15: Invalid expression: a:path.equals(self.path)
line 84:
E133: :return not inside a function
line 86:
E121: Undefined variable: a:path
E116: Invalid arguments for function stridx(a:path.str(), self.path.str(), 0) ==# -1
E15: Invalid expression: stridx(a:path.str(), self.path.str(), 0) ==# -1
line 87:
E133: :return not inside a function
line 90:
E121: Undefined variable: self
E15: Invalid expression: self.path.isDirectory
line 94:
E133: :return not inside a function
line 98:
E133: :return not inside a function
line 99:
E193: :endfunction not inside a function
line 103:
E121: Undefined variable: s:TreeDirNode
line 104:
E133: :return not inside a function
line 105:
E193: :endfunction not inside a function
line 115:
E121: Undefined variable: s:TreeDirNode
line 116:
E121: Undefined variable: a:path
E116: Invalid arguments for function stridx(a:path.str(), self.path.str(), 0) ==# -1
E15: Invalid expression: stridx(a:path.str(), self.path.str(), 0) ==# -1
line 117:
E133: :return not inside a function
line 120:
E121: Undefined variable: self
E15: Invalid expression: self.getChildIndex(a:path)
line 121:
E121: Undefined variable: index
E15: Invalid expression: index ==# -1
line 122:
E133: :return not inside a function
line 124:
E133: :return not inside a function
line 127:
E193: :endfunction not inside a function
line 135:
E121: Undefined variable: s:TreeDirNode
line 136:
E121: Undefined variable: a:visible
E15: Invalid expression: a:visible? self.getVisibleChildren() : self.children
line 137:
E121: Undefined variable: a:indx
E15: Invalid expression: a:indx > len(array_to_search)
line 140:
E133: :return not inside a function
line 141:
E193: :endfunction not inside a function
line 151:
E121: Undefined variable: s:TreeDirNode
line 152:
E121: Undefined variable: a:path
E116: Invalid arguments for function stridx(a:path.str(), self.path.str(), 0) ==# -1
E15: Invalid expression: stridx(a:path.str(), self.path.str(), 0) ==# -1
line 153:
E133: :return not inside a function
line 158:
E121: Undefined variable: self
E15: Invalid expression: self.getChildCount()
line 159:
E121: Undefined variable: z
E15: Invalid expression: a < z
line 168:
E133: :return not inside a function
line 171:
E133: :return not inside a function
line 172:
E193: :endfunction not inside a function
line 177:
E121: Undefined variable: s:TreeDirNode
line 178:
E121: Undefined variable: s:TreeDirNode
line 179:
E121: Undefined variable: g:NERDTreeFileNode
E15: Invalid expression: g:NERDTreeFileNode.GetSelected()
line 180:
E121: Undefined variable: currentDir
E15: Invalid expression: currentDir != {} && !currentDir.isRoot()
line 185:
E133: :return not inside a function
line 186:
E193: :endfunction not inside a function
line 190:
E121: Undefined variable: s:TreeDirNode
line 191:
E133: :return not inside a function
line 192:
E193: :endfunction not inside a function
line 199:
E121: Undefined variable: s:TreeDirNode
line 201:
E121: Undefined variable: self
E15: Invalid expression: self.children
line 206:
E133: :return not inside a function
line 207:
E193: :endfunction not inside a function
line 211:
E121: Undefined variable: s:TreeDirNode
line 212:
E133: :return not inside a function
line 213:
E193: :endfunction not inside a function
line 223:
E121: Undefined variable: s:TreeDirNode
line 225:
E121: Undefined variable: self
line 228:
E121: Undefined variable: self
E15: Invalid expression: self.path
line 229:
E121: Undefined variable: dir
E15: Invalid expression: dir.str({'format': 'Glob'})
line 232:
E121: Undefined variable: globDir
E116: Invalid arguments for function globpath(globDir, '*', 1) . "\n" . globpath(globDir, '.*', 1)
E15: Invalid expression: globpath(globDir, '*', 1) . "\n" . globpath(globDir, '.*', 1)
line 237:
E121: Undefined variable: filesStr
E116: Invalid arguments for function split(filesStr, "\n")
E15: Invalid expression: split(filesStr, "\n")
line 239:
E121: Undefined variable: a:silent
E15: Invalid expression: !a:silent && len(files) > g:NERDTreeNotificationThreshold
line 244:
E121: Undefined variable: files
E15: Invalid expression: files
line 261:
E121: Undefined variable: self
line 263:
E121: Undefined variable: a:silent
E15: Invalid expression: !a:silent && len(files) > g:NERDTreeNotificationThreshold
line 270:
E133: :return not inside a function
line 271:
E193: :endfunction not inside a function
line 278:
E121: Undefined variable: s:TreeDirNode
line 279:
E121: Undefined variable: s:TreeDirNode
line 280:
E121: Undefined variable: a:path
E15: Invalid expression: a:path.isDirectory != 1
line 284:
E121: Undefined variable: self
E116: Invalid arguments for function copy(self)
E15: Invalid expression: copy(self)
line 285:
E121: Undefined variable: a:path
E15: Invalid expression: a:path
line 287:
E121: Undefined variable: newTreeNode
line 288:
E121: Undefined variable: newTreeNode
line 290:
E121: Undefined variable: newTreeNode
line 292:
E133: :return not inside a function
line 293:
E193: :endfunction not inside a function
line 299:
E121: Undefined variable: s:TreeDirNode
line 300:
E121: Undefined variable: s:TreeDirNode
line 301:
E121: Undefined variable: a:0
E15: Invalid expression: a:0 ? a:1 : {}
line 303:
E121: Undefined variable: opts
E116: Invalid arguments for function has_key(opts, 'where') && !empty(opts['where'])
E15: Invalid expression: has_key(opts, 'where') && !empty(opts['where'])
line 309:
E133: :return not inside a function
line 311:
E133: :return not inside a function
line 314:
E193: :endfunction not inside a function
line 320:
E121: Undefined variable: s:TreeDirNode
line 321:
E121: Undefined variable: a:0
E15: Invalid expression: a:0 ? a:1 : {}
line 324:
E121: Undefined variable: self
E15: Invalid expression: self
line 325:
E121: Undefined variable: node
E15: Invalid expression: node.path.isDirectory
line 334:
E133: :return not inside a function
line 335:
E193: :endfunction not inside a function
line 340:
E121: Undefined variable: s:TreeDirNode
line 341:
E121: Undefined variable: self
line 342:
E193: :endfunction not inside a function
line 345:
E121: Undefined variable: s:TreeDirNode
line 346:
E121: Undefined variable: s:TreeDirNode
TreeDirNode.openInNewTab is deprecated, use open() instead
line 348:
E121: Undefined variable: self
line 349:
E193: :endfunction not inside a function
line 352:
E121: Undefined variable: s:TreeDirNode
line 354:
E121: Undefined variable: self
E116: Invalid arguments for function 29
line 355:
E193: :endfunction not inside a function
line 363:
E121: Undefined variable: s:TreeDirNode
line 364:
E121: Undefined variable: self
line 365:
E193: :endfunction not inside a function
line 374:
E121: Undefined variable: s:TreeDirNode
line 375:
E121: Undefined variable: self
E15: Invalid expression: self.path.ignore() ==# 0 || a:forceOpen
line 387:
E193: :endfunction not inside a function
line 390:
E121: Undefined variable: s:TreeDirNode
line 391:
E121: Undefined variable: s:TreeDirNode
line 392:
E121: Undefined variable: self
line 395:
E121: Undefined variable: self
E15: Invalid expression: self.isOpen || !empty(self.children)
line 439:
E193: :endfunction not inside a function
line 444:
E121: Undefined variable: s:TreeDirNode
line 445:
E121: Undefined variable: a:path
E15: Invalid expression: !a:path.isUnder(self.path)
line 449:
E121: Undefined variable: self
line 451:
E121: Undefined variable: self
E15: Invalid expression: self.path.equals(a:path.getParent())
line 455:
E133: :return not inside a function
line 458:
E121: Undefined variable: a:path
E15: Invalid expression: a:path
line 459:
E121: Undefined variable: p
E15: Invalid expression: !p.getParent().equals(self.path)
line 463:
E121: Undefined variable: self
E15: Invalid expression: self.findNode(p)
line 464:
E121: Undefined variable: n
line 465:
E193: :endfunction not inside a function
line 475:
E121: Undefined variable: s:TreeDirNode
line 476:
E121: Undefined variable: self
E116: Invalid arguments for function range(0, self.getChildCount()-1)
E15: Invalid expression: range(0, self.getChildCount()-1)
line 479:
E133: :return not inside a function
line 483:
E605: Exception not caught: NERDTree.ChildNotFoundError: child node was not found
Press ENTER or type command to continue
The file passed through isn't opened . Otherwise it remains usable - you can still use NERDTtree as normal. It appears to be specific to Vim 7.4 as it did not occur when I was using Vim 7.3, also via Homebrew on the same OS.
EDIT: Reinstalling the plugin from scratch seemed to solve the issue entirely, so it would appear that it probably isn't a bug, in which case it would appear no action is required to resolve this.
I'm using Vim 7.4, built using Homebrew on Mac OS X Snow Leopard, and if I try to start Vim from the shell, I see the following error:
The file passed through isn't opened . Otherwise it remains usable - you can still use NERDTtree as normal. It appears to be specific to Vim 7.4 as it did not occur when I was using Vim 7.3, also via Homebrew on the same OS.
EDIT: Reinstalling the plugin from scratch seemed to solve the issue entirely, so it would appear that it probably isn't a bug, in which case it would appear no action is required to resolve this.