From 8db9d4b3873b166ccc5991b2004c0f6d46ce6284 Mon Sep 17 00:00:00 2001 From: tinmarino Date: Sun, 15 Dec 2019 19:23:50 -0300 Subject: [PATCH] VimwikiGoto: Enable VimwikiGoBackLink after --- autoload/vimwiki/base.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index 8c1b9c7..a29783e 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -430,9 +430,14 @@ function! vimwiki#base#goto(...) let key = a:0 > 0 ? a:1 : input('Enter name: ') let anchor = a:0 > 1 ? a:2 : '' + " Save current file pos + let vimwiki_prev_link = [vimwiki#path#current_wiki_file(), getpos('.')] + call vimwiki#base#edit_file(':e', \ vimwiki#vars#get_wikilocal('path') . key . vimwiki#vars#get_wikilocal('ext'), - \ anchor) + \ anchor, + \ vimwiki_prev_link, + \ &ft ==# 'vimwiki') endfunction