nerdtree nur bei ordner
This commit is contained in:
parent
edeff2bd89
commit
5c35035482
1 changed files with 3 additions and 3 deletions
6
.vimrc
6
.vimrc
|
@ -63,12 +63,12 @@ let NERDTreeShowLineNumbers = 0 " Hide line numbers
|
||||||
let NERDTreeMinimalMenu = 1 " Use the minimal menu (m)
|
let NERDTreeMinimalMenu = 1 " Use the minimal menu (m)
|
||||||
let NERDTreeWinSize = 31 " Set panel width to 31 columns
|
let NERDTreeWinSize = 31 " Set panel width to 31 columns
|
||||||
nmap <F2> :NERDTreeToggle<CR> " ruft NERDtree mit F2 auf
|
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 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
|
let g:nerdtree_sync_cursorline = 1 " highlight the file in tree
|
||||||
" open the existing NERDTree on each new tab.
|
" 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.
|
" exit Vim if NERDTree is the only window left.
|
||||||
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() |
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() |
|
||||||
|
|
Loading…
Reference in a new issue