1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Remove nerdtree, I rarely use it

This commit is contained in:
jdhao 2020-09-29 16:09:51 +08:00
parent ef9e87ec53
commit 85c9c79dc9
2 changed files with 0 additions and 32 deletions

View File

@ -29,7 +29,6 @@ itself and the configuration on different platforms (Linux, macOS and Windows).
+ Fast buffer jump via [vim-sneak](https://github.com/justinmk/vim-sneak).
+ Fuzzy searching in current project quickly via [LeaderF](https://github.com/Yggdroot/LeaderF).
+ Beautiful status line via [vim-airline](https://github.com/vim-airline/vim-airline).
+ Powerful file explorer via [Nerdtree](https://github.com/scrooloose/nerdtree).
+ Tags navigation via [tagbar](https://github.com/majutsushi/tagbar).
+ ......

View File

@ -126,9 +126,6 @@ endif
"}}
"{{ Navigation and tags plugin
" File explorer for vim
Plug 'preservim/nerdtree', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] }
" Only install these plugins if ctags are installed on the system
if executable('ctags')
" plugin to manage your tags
@ -494,34 +491,6 @@ endif
"}}
"{{ Navigation and tags
""""""""""""""""""""""" nerdtree settings """"""""""""""""""""""""""
" Toggle nerdtree window and keep cursor in file window,
" adapted from https://stackoverflow.com/q/24808932/6064933
nnoremap <silent> <Space>s :NERDTreeToggle<CR>:wincmd p<CR>
" Reveal currently editted file in nerdtree widnow,
" see https://stackoverflow.com/q/7692233/6064933
nnoremap <silent> <Space>f :NERDTreeFind<CR>
" Ignore certain files and folders
let NERDTreeIgnore = ['\.pyc$', '^__pycache__$']
" Automatically show nerdtree window on entering nvim,
" see https://github.com/scrooloose/nerdtree. But now the cursor
" is in nerdtree window, so we need to change it to the file window,
" extracted from https://stackoverflow.com/q/24808932/6064933
" autocmd VimEnter * NERDTree | wincmd l
" Delete a file buffer when you have deleted it in nerdtree
let NERDTreeAutoDeleteBuffer = 1
" Show current root as realtive path from HOME in status bar,
" see https://github.com/scrooloose/nerdtree/issues/891
let NERDTreeStatusline="%{exists('b:NERDTree')?fnamemodify(b:NERDTree.root.path.str(), ':~'):''}"
" Disable bookmark and 'press ? for help' text
let NERDTreeMinimalUI=0
""""""""""""""""""""""""""" tagbar settings """"""""""""""""""""""""""""""""""
" Shortcut to toggle tagbar window
nnoremap <silent> <Space>t :TagbarToggle<CR>