Added a function to Toggle NERDTree and Tagbar
This commit is contained in:
parent
d13e31053e
commit
fb443bc295
13
init.vim
13
init.vim
@ -35,12 +35,23 @@ let NERDTreeChDirMode = 2
|
|||||||
nmap <leader>n :NERDTreeToggle <CR>
|
nmap <leader>n :NERDTreeToggle <CR>
|
||||||
map <leader>t :TagbarToggle <CR>
|
map <leader>t :TagbarToggle <CR>
|
||||||
map <leader>u :MundoToggle <CR>
|
map <leader>u :MundoToggle <CR>
|
||||||
|
nnoremap <leader>l <C-w>l
|
||||||
|
|
||||||
tnoremap <Esc> <C-\><C-n>
|
tnoremap <Esc> <C-\><C-n>
|
||||||
|
|
||||||
nnoremap <F4> :call vimterm#toggle() <CR>
|
nnoremap <F4> :call vimterm#toggle() <CR>
|
||||||
tnoremap <F4> <C-\><C-n>:call vimterm#toggle() <CR>
|
tnoremap <F4> <C-\><C-n>:call vimterm#toggle() <CR>
|
||||||
|
|
||||||
|
" Custom function to Toggle Tagbar and NERDTree
|
||||||
|
let s:hidden_all = 0
|
||||||
|
function! ToggleHiddenAll()
|
||||||
|
NERDTreeToggle
|
||||||
|
wincmd l
|
||||||
|
TagbarToggle
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
nnoremap <silent> <leader>h :call ToggleHiddenAll()<CR>
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'SirVer/ultisnips'
|
Plug 'SirVer/ultisnips'
|
||||||
Plug 'honza/vim-snippets'
|
Plug 'honza/vim-snippets'
|
||||||
@ -66,3 +77,5 @@ Plug 'bfredl/nvim-ipy'
|
|||||||
Plug 'sakhnik/nvim-gdb'
|
Plug 'sakhnik/nvim-gdb'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user