From 4458216760726cbf527d89d0b60e3433837de67e Mon Sep 17 00:00:00 2001 From: Rane Brown Date: Sun, 25 Aug 2019 14:25:31 -0600 Subject: [PATCH] ww opens the currently active wiki. The previous behavior was to open the index of the first wiki. This change makes the command more consistent with similar mappings. Closes #741. --- doc/vimwiki.txt | 5 +++-- plugin/vimwiki.vim | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index 46dbda2..ffaf7f1 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -153,8 +153,9 @@ course. [count]ww Open index file of the [count]'s wiki. - ww opens the first wiki from |g:vimwiki_list|. - 1ww as above, opens the first wiki from |g:vimwiki_list|. + ww opens the first wiki from |g:vimwiki_list| if no wiki is + open. Otherwise the index of the currently active wiki is opened. + 1ww opens the first wiki from |g:vimwiki_list|. 2ww opens the second wiki from |g:vimwiki_list|. 3ww opens the third wiki from |g:vimwiki_list|. etc. diff --git a/plugin/vimwiki.vim b/plugin/vimwiki.vim index b9e42a0..6e2290e 100644 --- a/plugin/vimwiki.vim +++ b/plugin/vimwiki.vim @@ -374,9 +374,9 @@ command! VimwikiShowVersion call s:get_version() " global definitions nnoremap