In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to install vim 7.4 to display the file directory tree in NERDTree. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
My vim version
[chunli@CentOS NERD_tree-4.2] $vim-- versionVIM-Vi IMproved 7.4 (2013 Aug 10, compiled Dec 21 2016 17:06:34) Included patches: 1-207,209629
The version I should download is nerdtree.zip 4.2.0.
Download 5.0.0 to report an error.
Download http://www.vim.org/scripts/download_script.php?src_id=17123[chunli@CentOS ~] $mkdir NERDTree [chunli@CentOS ~] $cd NERDTree [chunli@CentOS NERD_tree-4.2] $unzip nerdtree.zip [chunli@CentOS NERD_tree-4.2] $cp plugin/NERD_tree.vim ~ / .vim / plugin/ [chunli@CentOS ~] $cd NERD_tree-4.2/ [chunli@CentOS NERD_tree-4.2] $vim ~ / .vimrc:NERDTree # display the directory tree
NERDTree shortcut key:
Ctrl + w + w cursor automatically switch between left and right window ctrl + w + r move the layout position of the current window o expand a directory on the left, click again to merge directory O recursively open all directories under the selected node x close the parent directory of the selected node X recursively close all directories under the selected node go open files in the existing window But the cursor does not jump to the window t to open the selected file, and jumps to the new window T to open the selected file, in the original window P to the superior directory node p, to the root directory node Q to close the NerdTree window I to open the selected file, up and down and to the window gi to open the selected file, up and down split screen, do not jump to the window s to open the selected file Left and right split screen and jump to the window gs to open the selected file, left and right split screen, do not jump to the window! Executing the current file e Edit the current dif double-click is equivalent to NERDTree-o key pair file equivalent to NERDTree-i Delete the current bookmark from the directory equivalent to NERDTree-eD, jump to the root node p, jump to the parent node K, jump to the first node of the same level under the current directory, jump to the last node of the same level under the current directory, jump to the previous node of the same level under the current directory, jump to the next node of the same level under the current directory, and set the parent directory of the selected directory or file as the root node u set the parent directory of the current root node as the root directory. And close the original root node U set the parent directory of the current root node as the root directory, but keep expanding the original root node r recursively refresh the selected directory R recursively refresh the root node m display file system menu cd set CWD to the selected directory I toggle whether to show hidden files f switch whether to use file filter F switch whether to show file B switch whether to show bookmarks Q close the NerdTree window? Toggle whether to display the Quick Help switch tab: tabnew [+ opt option] [+ cmd] file to establish a new tab:tabc for the specified file to close the current tab:tabo to close all other tab:tabs view all open tab:tabp before a tab:tabn after a tab standard mode: gT before a tabgt after a tabMacVim can also use shortcuts to close tab, Switching cmd+w closes the current tabcmd+ {previous tabcmd+} the common configuration of the next tabNerdTree in .vimrc "turn on NERDTree by default when vim starts (autocmd can be abbreviated to au) autocmd VimEnter * NERDTree" press F2 to call out / hide NERDTreemap: silent! NERDTreeToggle "sets NERDTree's window to the right of the vim window (default is left) let NERDTreeWinPos=" right "" automatically displays Bookmarkslet NERDTreeShowBookmarks=1 when the NERDTree window is opened
Set to turn off and open NerdTree
[chunli@CentOS ~] $vim ~ / .vimrc "NERDTree related Settings" setting turns off and opens NerdTreemap: NERDTreeMirrormap: NERDTreeTogglelet NERDTreeWinPos=0 "put NERDTree in the edit area, 1 right 0 left let NERDTreeWinSize=20" sets the width of the NERDTree. The default is 30 let NERDTreeShowHidden=1 "Show Hidden Files" autocmd BufReadPost *: NERDTree "automatically open NERDTree when you start vim" when vim has no files Automatically exit NERDTree "autocmd bufenter * if (winnr (" $") = = 1 & & exists (" b:NERDTreeType ") & & b:NERDTreeType = =" primary ") | Q | endif" wincmd w "cursor is automatically displayed in the editing area" autocmd VimEnter * wincmd w "cursor is automatically displayed in the editing area. This is the end of the article on how to install the NERDTree display file directory tree in vim 7.4. Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.