From f7d966c596216976adce777d69ad2f86b51a635e Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Wed, 14 Mar 2012 23:10:31 +1300 Subject: [PATCH] Support column: extension field --- autoload/tagbar.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 86bbf7e..abecd5b 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -2659,8 +2659,9 @@ function! s:JumpToTag(stay_in_tagbar) let taginfo.fileinfo.fline[curline] = taginfo endif - " Center the tag in the window + " Center the tag in the window and jump to the correct column if available normal! z. + call cursor(taginfo.fields.line, get(taginfo.fields, 'column', 1)) if foldclosed('.') != -1 .foldopen!