From dfce41715b4942cf9171ba45da791f070b098ac5 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Sat, 15 Jan 2011 19:22:56 +1300 Subject: [PATCH] Keep old alternate file when opening tagbar window. --- plugin/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 1b9ec80..049a258 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -122,7 +122,7 @@ function! s:OpenWindow() endif let openpos = g:tagbar_left ? 'topleft vertical ' : 'botright vertical ' - execute 'silent! ' . openpos . g:tagbar_width . 'split ' . '__Tagbar__' + execute 'silent! keepalt ' . openpos . g:tagbar_width . 'split ' . '__Tagbar__' setlocal noreadonly " in case the "view" mode is used setlocal buftype=nofile