add nerdtree to vim and give it keybinding

This commit is contained in:
Marty Oehme 2019-03-13 18:01:53 +01:00
parent 2a2991796d
commit 2bd871a717

View file

@ -6,6 +6,10 @@ call plug#begin('~/.local/share/nvim/plugged')
Plug 'tpope/vim-sensible' Plug 'tpope/vim-sensible'
Plug 'tpope/vim-commentary' Plug 'tpope/vim-commentary'
" Ecosystem
" Plug 'tpope/vim-fugitive' - Will have to take a closer look some other time
Plug 'scrooloose/nerdtree'
" Language Integration " Language Integration
Plug 'stephpy/vim-yaml' Plug 'stephpy/vim-yaml'
@ -22,8 +26,12 @@ call plug#end()
" PLUGIN CONFIGURATION " PLUGIN CONFIGURATION
let g:airline_powerline_fonts=1 let g:airline_powerline_fonts=1
let g:airline_theme='raven' let g:airline_theme='raven'
let g:airline_extensions = ['keymap', 'netrw', 'po', 'quickfix', 'term', 'whitespace']
colorscheme allomancer colorscheme allomancer
" disable automatically refreshing the mux statusbar since it breaks tmux
" prefix highlighting. Instead, when changing vim statusbar just create
" snapshot with :TmuxlineSnapshot file and stick it into tmux config manually
let g:airline#extensions#tmuxline#enabled = 0
" custom preset with left-justified window list " custom preset with left-justified window list
let g:tmuxline_preset = { let g:tmuxline_preset = {
\'a' : '#S', \'a' : '#S',
@ -103,3 +111,6 @@ nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR>
" 'open new tab' with leader-t (opens new buffer and switches to it) " 'open new tab' with leader-t (opens new buffer and switches to it)
nnoremap <leader>t <C-w>v<C-w><C-w> nnoremap <leader>t <C-w>v<C-w><C-w>
" open NERDtree with leader-e
nnoremap <leader>e :NERDTreeToggle<CR>