From fb443bc29581a1851d7b1e5f37536e71650bff77 Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 17 May 2018 17:32:24 +0200 Subject: [PATCH] Added a function to Toggle NERDTree and Tagbar --- init.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/init.vim b/init.vim index 223917c..b4979f0 100644 --- a/init.vim +++ b/init.vim @@ -35,12 +35,23 @@ let NERDTreeChDirMode = 2 nmap n :NERDTreeToggle map t :TagbarToggle map u :MundoToggle +nnoremap l l tnoremap nnoremap :call vimterm#toggle() tnoremap :call vimterm#toggle() +" Custom function to Toggle Tagbar and NERDTree +let s:hidden_all = 0 +function! ToggleHiddenAll() + NERDTreeToggle + wincmd l + TagbarToggle +endfunction + +nnoremap h :call ToggleHiddenAll() + call plug#begin() Plug 'SirVer/ultisnips' Plug 'honza/vim-snippets' @@ -66,3 +77,5 @@ Plug 'bfredl/nvim-ipy' Plug 'sakhnik/nvim-gdb' call plug#end() + +