From 85c9c79dc9f21dd8f5b65d6a2a7c2ffd029d65fd Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 29 Sep 2020 16:09:51 +0800 Subject: [PATCH] Remove nerdtree, I rarely use it --- README.md | 1 - plugins.vim | 31 ------------------------------- 2 files changed, 32 deletions(-) diff --git a/README.md b/README.md index ec3704e..92413f9 100644 --- a/README.md +++ b/README.md @@ -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). + ...... diff --git a/plugins.vim b/plugins.vim index 3c0aa04..f652a60 100644 --- a/plugins.vim +++ b/plugins.vim @@ -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 s :NERDTreeToggle:wincmd p - -" Reveal currently editted file in nerdtree widnow, -" see https://stackoverflow.com/q/7692233/6064933 -nnoremap f :NERDTreeFind - -" 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 t :TagbarToggle