plugins - Added NERDTree

This commit is contained in:
Emmanuel BENOîT 2023-06-18 11:50:16 +02:00
parent 1bc2b6acb4
commit 6a4f86b634
No known key found for this signature in database
GPG key ID: 2356DC6956CF54EF
4 changed files with 10 additions and 4 deletions

View file

@ -1 +0,0 @@
NeoBundle 'scrooloose/nerdtree'

6
cfg/30-nerdtree-auto.vim Normal file
View file

@ -0,0 +1,6 @@
" Open automatically NERDTree if there are more than 150 columns and no file was
" specified
autocmd VimEnter * if argc() == 0 && &columns > 150
\ | call dein#source("nerdtree")
\ | NERDTree
\ | endif

View file

@ -2,9 +2,6 @@
let g:NERDTreeGitStatusUpdateOnWrite = 1 let g:NERDTreeGitStatusUpdateOnWrite = 1
nnoremap <Leader>e :NERDTreeToggle<CR> nnoremap <Leader>e :NERDTreeToggle<CR>
" Open automatically if there are more than 150 columns and no file was specified
autocmd VimEnter * if argc() == 0 && &columns > 150 | NERDTree | endif
" Set the bookmarks file's path " Set the bookmarks file's path
let g:NERDTreeBookmarksFile = GetVardataPath( 'NTBookmarks' ) let g:NERDTreeBookmarksFile = GetVardataPath( 'NTBookmarks' )

View file

@ -0,0 +1,4 @@
call dein#add('scrooloose/nerdtree', #{
\ lazy: 1,
\ on_map: #{ n: ['<Leader>e'] },
\ })