首页
随机
最近更改
特殊页面
社群首页
参数设置
关于WHY42
免责声明
WHY42
搜索
用户菜单
登录
欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。
查看“︁VIM:NERD Tree”︁的源代码
←
VIM:NERD Tree
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
=操作= *<code>:NERDTree</code>打开目录树 *{{key press|Ctrl|w|h}} focus到目录 *{{key press|Ctrl|w|l}} focus到右侧文件 *{{key press|o}} 打开关闭文件或者目录 *{{key press|t}} 在标签页中打开 *{{key press|T}} 在后台标签页中打开 *{{key press|!}} 执行此文件 *{{key press|p}} 到上层目录 *{{key press|P}} 到根目录 *{{key press|K}} 到第一个节点 *{{key press|J}} 到最后一个节点 *{{key press|u}} 打开上层目录 *{{key press|m}} 显示文件系统菜单(添加、删除、移动操作) *{{key press|?}} 帮助 *{{key press|q}} 关闭 <pre> 2.3. NERD tree Mappings *NERDTreeMappings* Default Description~ help-tag~ Key~ o.......Open files, directories and bookmarks....................|NERDTree-o| go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go| t.......Open selected node/bookmark in a new tab.................|NERDTree-t| T.......Same as 't' but keep the focus on the current tab........|NERDTree-T| i.......Open selected file in a split window.....................|NERDTree-i| gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi| s.......Open selected file in a new vsplit.......................|NERDTree-s| gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs| O.......Recursively open the selected directory..................|NERDTree-O| x.......Close the current nodes parent...........................|NERDTree-x| X.......Recursively close all children of the current node.......|NERDTree-X| e.......Edit the current dir.....................................|NERDTree-e| <CR>...............same as |NERDTree-o|. double-click.......same as the |NERDTree-o| map. middle-click.......same as |NERDTree-i| for files, same as |NERDTree-e| for dirs. D.......Delete the current bookmark .............................|NERDTree-D| P.......Jump to the root node....................................|NERDTree-P| p.......Jump to current nodes parent.............................|NERDTree-p| K.......Jump up inside directories at the current tree depth.....|NERDTree-K| J.......Jump down inside directories at the current tree depth...|NERDTree-J| <C-J>...Jump down to the next sibling of the current directory...|NERDTree-C-J| <C-K>...Jump up to the previous sibling of the current directory.|NERDTree-C-K| C.......Change the tree root to the selected dir.................|NERDTree-C| u.......Move the tree root up one directory......................|NERDTree-u| U.......Same as 'u' except the old root node is left open........|NERDTree-U| r.......Recursively refresh the current directory................|NERDTree-r| R.......Recursively refresh the current root.....................|NERDTree-R| m.......Display the NERD tree menu...............................|NERDTree-m| cd......Change the CWD to the dir of the selected node...........|NERDTree-cd| CD......Change tree root to the CWD..............................|NERDTree-CD| I.......Toggle whether hidden files displayed....................|NERDTree-I| f.......Toggle whether the file filters are used.................|NERDTree-f| F.......Toggle whether files are displayed.......................|NERDTree-F| B.......Toggle whether the bookmark table is displayed...........|NERDTree-B| q.......Close the NERDTree window................................|NERDTree-q| A.......Zoom (maximize/minimize) the NERDTree window.............|NERDTree-A| ?.......Toggle the display of the quick help.....................|NERDTree-?| ------------------------------------------------------------------------------ </pre> =配置= <source lang="bash"> #~/.vimrc #启动时自动加载 autocmd vimenter * NERDTree #未指定文件时加载 autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif #打开文件夹时加载 autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif #快捷键 map <C-e> :NERDTreeToggle<CR> </source> [[Category:Linux/Unix]]
此页面嵌入的页面:
模板:Border-radius
(
查看源代码
)
模板:Box-shadow
(
查看源代码
)
模板:Key press
(
查看源代码
)
模板:Key press/core
(
查看源代码
)
模板:Linear-gradient
(
查看源代码
)
返回
VIM:NERD Tree
。