Vim plugin nerdtree-file Management plugin

Source: Internet
Author: User
Tags parent directory



The NERD tree, file management tool for easy browsing and editing of files



Configuration:


"The NERD tree
"F3 trigger, set width to 30, show bookmarks
map <F3>: NERDTreeToggle <CR>
let NERDTreeWinSize = 30
let NERDTreeShowBookmarks = 1
"Highlight current line
let NERDTreeHighlightCursorline = 1
"Automatically close NERDTree after opening file from NERDTree
let NERDTreeQuitOnOpen = 1
"Show hidden files
let g: NERDTreeShowHidden = 1
"Ignore specific files and directories
let NERDTreeIgnore = [‘\ .pyc $’, ‘\ .pyo $’, ‘\ .py \ $ class $’, ‘\ .obj $’,
             \ ‘\ .O $’, ‘\ .so $’, ‘\ .egg $’, ‘^ \. Git $’, ‘__pycache__’, ‘\ .DS_Store’]
"Show line number
"let NERDTreeShowLineNumbers = 1
"let NERDTreeAutoCenter = 1
"Automatically Open NERDTree
"autocmd vimenter * NERDTree 


Shortcut keys for Nerdtree


Key function
? Quick Help Documentation
O Open a directory or open a file, create a buffer, or use it to open a bookmark
Go Open a file, but the cursor remains in nerdtree, creating a buffer
T Opens a file, creates tab, and also takes effect on bookmarks
T Open a file, but the cursor remains in Nerdtree, the tab is created, and the bookmark takes effect
I Split the window that creates the file horizontally, creating a buffer
Gi Split the window to create the file horizontally, but the cursor remains in the Nerdtree
S Vertically splits the window that creates the file, creating a buffer
Gs Similar to the Gi,go
X To close the currently open Directory
X To close all open directories
E Open the selected directory in a file-managed manner
D Delete Bookmark
P Capitalize, jump to current root path
P lowercase, jumps to the top-level path where the cursor is located
K Jump to first sub-path
J Jump to the last sub-path
<c-j or c-k> Move between sibling directories and files, ignoring subdirectories and sub-files
C Set the root path to the directory where the cursor is located
U Set the parent directory as the root path
U Set the parent directory as the root path, but maintain the status of the original directory open
R Refresh the directory where the cursor is located
R Refreshes the current root path
I Show or do not show hidden files
F Open and Close file filters
Q Close Nerdtree
A Display Nerdtree full screen, or turn off fullscreen


However, when the logout is automatically opened, there will be an error.






Can not understand, do not know where the wrong ...



Vim plugin nerdtree-file Management plugin


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.