From 2bd871a71768b131f6efdced4a5c2380a6f13ebe Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 13 Mar 2019 18:01:53 +0100 Subject: [PATCH] add nerdtree to vim and give it keybinding --- .config/nvim/init.vim | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index f242183..00e6382 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -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 W :%s/\s\+$//:let @/='' " 'open new tab' with leader-t (opens new buffer and switches to it) nnoremap t v + +" open NERDtree with leader-e +nnoremap e :NERDTreeToggle