add nerdtree to vim and give it keybinding
This commit is contained in:
parent
2a2991796d
commit
2bd871a717
1 changed files with 12 additions and 1 deletions
|
@ -6,6 +6,10 @@ call plug#begin('~/.local/share/nvim/plugged')
|
|||
Plug 'tpope/vim-sensible'
|
||||
Plug 'tpope/vim-commentary'
|
||||
|
||||
" Ecosystem
|
||||
" Plug 'tpope/vim-fugitive' - Will have to take a closer look some other time
|
||||
Plug 'scrooloose/nerdtree'
|
||||
|
||||
" Language Integration
|
||||
Plug 'stephpy/vim-yaml'
|
||||
|
||||
|
@ -22,8 +26,12 @@ call plug#end()
|
|||
" PLUGIN CONFIGURATION
|
||||
let g:airline_powerline_fonts=1
|
||||
let g:airline_theme='raven'
|
||||
let g:airline_extensions = ['keymap', 'netrw', 'po', 'quickfix', 'term', 'whitespace']
|
||||
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
|
||||
let g:tmuxline_preset = {
|
||||
\'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)
|
||||
nnoremap <leader>t <C-w>v<C-w><C-w>
|
||||
|
||||
" open NERDtree with leader-e
|
||||
nnoremap <leader>e :NERDTreeToggle<CR>
|
||||
|
|
Loading…
Reference in a new issue