vim: Nerdtree

This commit is contained in:
Michael Grote 2022-07-31 19:39:02 +02:00
parent fd923b6841
commit 068715e8f0

3
.vimrc
View file

@ -212,9 +212,6 @@ nnoremap <Leader>z :set nonumber! norelativenumber!<CR>
" entferne trailing whitespaces beim speichern
autocmd BufWritePre * :%s/\s\+$//e
" Start NERDTree when Vim is started without file arguments.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
" NERDTree - show hidden files