Author: |
Thinkhy |
Date: |
2010.01.30. |
URL: |
Http://www.disandu.com /? P = 698 |
Keyword: |
Vim nerdtree Vim Open Directory |
I have heard of the nerdtree plug-in, but I haven't installed it all the time. I try to use the netrw plug-in provided by VIM to open the directory. Netrw is inconvenient to use, and the display method is not intuitive. You cannot keep the Directory window after opening the file. Finally, I decided to try the nerdtree plug-in after reading the recommendations from netizens in the Shui Mu Vim version. This plug-in was useless for only half a day. I found that this plug-in is no longer necessary, so let nerdtree be my standard.
Specifically, several mappings are configured for nerdtree:
"NERDTree plugin
let NERDTreeWinPos = "right" "where NERD tree window is placed on the screen
"let NERDTreeWinSize = 31 "size of the NERD tree
nmap <F7> <ESC>:NERDTreeToggle<RETURN>" Open and close the NERD_tree.vim separately
Nerdtree plug-in address: http://www.vim.org/scripts/script.php? Script_id = 1, 1658