回答
當在NERDTree窗口,按 'M';你應該在底部看到一個菜單。輸入'a'以添加子節點。現在輸入你想創建的目錄,確保在最後加上'/',否則腳本會創建一個文件。
AFAIK NERDTree不能創造這樣 '的mkdir -p' 的父目錄一樣。
當輸入a時出現錯誤處理函數時檢測到錯誤
我使用mkdir但nodetree文件系統結構並不自動刷新 – nkint 2011-04-26 13:57:10
更重要的是,您應該將nerdtree_plugin dir(它位於您的下載包中)放入.vim目錄中,或者當您按下'm'時會出現錯誤。感謝Housetier的回答 – guosheng1987 2012-07-27 03:08:31
按m
將打開下面的菜單,你可以從操作列表中進行選擇。
NERDTree Menu. Use j/k/enter and the shortcuts indicated
==========================================================
> (a)dd a childnode
(m)ove the current node
(d)elete the current node
(r)eveal in Finder the current node
(o)pen the current node with system editor
(q)uicklook the current node
(c)opy the current node
Add a childnode
==========================================================
Enter the dir/file name to be created. Dirs end with a '/'
/Library/WebServer/Documents/new-teacher-center/app/Model/
按a
會讓你添加一個孩子節點。一個孩子節點可以是一個文件或文件夾,具體取決於是否添加正斜槓(/)。
如果不加斜槓像下面,它會創建一個文件。
Add a childnode
==========================================================
Enter the dir/file name to be created. Dirs end with a '/'
/Library/WebServer/Documents/new-project/app/Model/file
如果像下面添加正斜槓,它會創建一個文件夾。
Add a childnode
==========================================================
Enter the dir/file name to be created. Dirs end with a '/'
/Library/WebServer/Documents/new-project/app/Model/folder/
- 1. 如何創建一個Nerdtree節點,使用tmpl.html
- 2. 使用PHP創建一個目錄
- 3. 我如何創建一個目錄?
- 4. 如何創建一個隱藏目錄
- 5. 如何使用put方法使用HTTPURLConnection創建目錄。它總是創建一個不是目錄的文件
- 6. 如何使用Web客戶端創建一個目錄在asp.net
- 7. 如何使用Java在TOMCAT中創建一個目錄?
- 8. Java:如何使用java.nio.file.FileSystem創建一個zip目錄
- 9. 如何使用fs.mkdir在節點js中創建一個目錄?
- 10. 如何使用Automake創建一個特定的目錄?
- 11. 如何在當前工作目錄中創建一個目錄,使用Java
- 12. 創建一個目錄
- 13. 如何使用getDir()創建目錄
- 14. 如何使用StreamWriter創建目錄?
- 15. 如何使用URI(Android)創建目錄?
- 16. 如何用Maven2在目標中創建一個子目錄
- 17. Maven:用ROOT目錄創建一個war
- 18. 如何知道php創建一個目錄和另一個目錄內
- 19. NERDTree在默認情況下,如果打開一個目錄
- 20. 如何用子目錄創建多個目錄?
- 21. 如何使作曲家不創建一個包的.git目錄
- 22. 如何在Vim中創建文件夾(首選使用NERDTree)?
- 23. 如何使用VBScript創建目錄和子目錄?
- 24. 使用Visual Studio 2008創建MSI - 如何創建子目錄?
- 25. 如何創建多個目錄?
- 26. 如何創建幾個子目錄
- 27. 如何在Django項目中創建一個「addons」目錄?
- 28. 如何使用bash腳本作爲另一個目錄下的子目錄創建空克隆目錄
- 29. 你如何用終端創建一個新目錄?
- 30. 如何使用PowerShell爲多個子目錄創建目錄連接?
這可能在超級用戶的歸屬。 – 2010-05-22 17:10:16
我不會將它移動到超級用戶。系統管理員使用Vim,但使用Vim的開發人員整天都在其中;我敢肯定它更適用於開發者。如果有辦法鏈接/克隆它,那將是一個不錯的選擇。 – 2013-03-24 06:16:26
文檔中的相關行很不顯眼。它在'NERDTreeMenu'[部分](http://stackoverflow.com/questions/1459750/vim-and-nerd-tree-extension-adding-a-file)中。 – gkb0986 2013-09-24 18:13:05