博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Vim中nerdtree配置
阅读量:5309 次
发布时间:2019-06-14

本文共 977 字,大约阅读时间需要 3 分钟。

nerdtree

nerdtree,就是一个文件树目录。

配置脚本

"文件树Plug 'scrooloose/nerdtree'Plug 'Xuyuanp/nerdtree-git-plugin'" 文件树设置 {
{
{" 关闭NERDTree快捷键map
t :NERDTreeToggle
""当NERDTree为剩下的唯一窗口时自动关闭autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif""修改树的显示图标let g:NERDTreeDirArrowExpandable = '►'let g:NERDTreeDirArrowCollapsible = '▼'let NERDTreeAutoCenter=1" 显示行号let NERDTreeShowLineNumbers=1" 是否显示隐藏文件let NERDTreeShowHidden=1" 设置宽度let NERDTreeWinSize=25" 在终端启动vim时,共享NERDTreelet g:nerdtree_tabs_open_on_console_startup=1" 忽略一下文件的显示let NERDTreeIgnore=['\.pyc','\~$','\.swp']let g:NERDTreeIndicatorMapCustom = { \ "Modified" : "✹", \ "Staged" : "✚", \ "Untracked" : "✭", \ "Renamed" : "➜", \ "Unmerged" : "═", \ "Deleted" : "✖", \ "Dirty" : "✗", \ "Clean" : "✔︎", \ 'Ignored' : '☒', \ "Unknown" : "?" \ }" }}}

转载于:https://www.cnblogs.com/wudongwei/p/9083503.html

你可能感兴趣的文章