据我了解,您可以使用 NERDTree 插件直接从 MacVim 添加文件。我导航到 NERDtree 并点击“m”以调出 NERDTree 文件系统菜单,如本文所述:vim and NERD Tree extension - added a file
问题是,我在调用“m”后得到了这个输出:
NERDTree Menu. Use j/k/enter and the shortcuts indicated
==========================================================
Error detected while processing function <SNR>14_showMenu..30..31:
line 4:
E716: Key not present in Dictionary: menuItems)-1)
E116: Invalid arguments for function len(self.menuItems)-1)
E116: Invalid arguments for function range(0, len(self.menuItems)-1)
E15: Invalid expression: range(0, len(self.menuItems)-1)
Press ENTER or type command to continue