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