nerdtree nur bei ordner

This commit is contained in:
Michael Grote 2021-05-31 19:39:11 +02:00
parent edeff2bd89
commit 5c35035482

6
.vimrc
View file

@ -63,12 +63,12 @@ let NERDTreeShowLineNumbers = 0 " Hide line numbers
let NERDTreeMinimalMenu = 1 " Use the minimal menu (m)
let NERDTreeWinSize = 31 " Set panel width to 31 columns
nmap <F2> :NERDTreeToggle<CR> " ruft NERDtree mit F2 auf
" Start NERDTree. If a file is specified, move the cursor to its window.
" Start NERDTree when Vim is started without file arguments.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
let g:nerdtree_sync_cursorline = 1 " highlight the file in tree
" open the existing NERDTree on each new tab.
autocmd BufWinEnter * silent NERDTreeMirror
"autocmd BufWinEnter * silent NERDTreeMirror
"
" exit Vim if NERDTree is the only window left.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() |