Vim 的各种插使用

PS: 基础插件安装详见另文 <Vim 的各种插安装>.

NerdTree

https://github.com/scrooloose/nerdtree

配置, 无脑拷贝自 github

1
2
3
4
5
6
7
8
9
10
11
let g:NERDTreeShowHidden=1
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 <F3> :NERDTreeMirror<CR>
map <F3> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
  1. 切换 tab (或者叫 panel): ctrl+w 两次
Donate - Support to make this site better.
捐助 - 支持我让我做得更好.