From f8b49b2f20480e626c33b5391b30f55f4d28b855 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Tue, 1 Feb 2011 15:28:48 +1300 Subject: [PATCH] Mark current position before jumping to it --- plugin/tagbar.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 8bd7698..178d28b 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -1196,6 +1196,9 @@ function! s:JumpToTag() execute 'wincmd p' + " Mark current position so it can be jumped back to + mark ' + " Jump to the line where the tag is defined. Don't use the search pattern " since it doesn't take the scope into account and thus can fail if tags " with the same name are defined in different scopes (e.g. classes)