add nerdtree and nerdtree-git-plugin to vim

This commit is contained in:
2016-08-08 23:07:26 +02:00
parent 1e1a50b3f0
commit 51814f1bc6
4 changed files with 18 additions and 1 deletions

11
.vimrc
View File

@@ -306,6 +306,15 @@ let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"⋅=>⋅nerdtree settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Open a NERDTree automatically when no files were specified
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Misc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -395,4 +404,4 @@ function! NumberToggle()
set relativenumber
endif
endfunc
nnoremap <C-n> :call NumberToggle()<cr>
"nnoremap <C-n> :call NumberToggle()<cr>