added tagbar to vim

This commit is contained in:
Johannes Findeisen 2025-08-10 01:57:01 +02:00
commit cbbebbe60b

3
.vimrc
View file

@ -7,6 +7,7 @@ call plug#begin()
Plug 'flazz/vim-colorschemes'
Plug 'vim-python/python-syntax'
Plug 'preservim/nerdtree'
Plug 'preservim/tagbar'
call plug#end()
" desert feral gentooish grb256 jellygrass kalt last256 matrix
@ -113,6 +114,8 @@ map <C-n> :NERDTreeToggle<CR>
" close vim if the only window left open is a NERDTree
"autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
nmap <F8> :TagbarToggle<CR>
" Remember position in file
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif