From e090fe73d19c4535e1c9abb1eab12f81040e35fe Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Fri, 22 Nov 2013 16:36:54 +1300 Subject: [PATCH] Automatically open folds in preview window --- autoload/tagbar.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index bc59aba..a30ee10 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -3014,6 +3014,10 @@ function! s:ShowInPreviewWin() abort execute g:tagbar_previewwin_pos . ' pedit +' . taginfo.fields.line . ' ' . \ s:known_files.getCurrent(0).fpath + + call s:goto_win('P') + normal! zv + call s:goto_win('p') endfunction " s:ShowPrototype() {{{2