Vimwiki: path of new diary entry

Created on 4 Mar 2018  路  4Comments  路  Source: vimwiki/vimwiki

Hi
I am using NeoVim v0.2.0 on fedora 26.

I've only one wiki configured on my .vimrc

g:vimwiki_list = [{
            \ 'path': '$HOME/my_wiki'
                        \  }]

When using <Leader>w<Leader>w, i am prompted about giving authorization to create a new folder on the default location for a diary , entry, that is, /home/username/vimwiki/diary.
However, in the documentation it is said that <Leader>w<Leader>w edits the first wiki's diary, so in my case it should create a file on $HOME/my_wiki/diary.

Is this a bug?

Thanks

bug

Most helpful comment

This comment refers to revision 4bacbe0.


There is currently an issue with opening the current diary file directly with <Leader>w<Leader>w. It ignores both the set path as well as syntax settings (it will try to open ~/vimwiki/diary/<today>.wiki) and uses the default values.

As a workaround: open either the index file first with <Leader>ww or any other vimwiki file directly. After that <Leader>w<Leader>w will open the correct diary file.


See issue #440, which is at least somehow related.

All 4 comments

This comment refers to revision 4bacbe0.


There is currently an issue with opening the current diary file directly with <Leader>w<Leader>w. It ignores both the set path as well as syntax settings (it will try to open ~/vimwiki/diary/<today>.wiki) and uses the default values.

As a workaround: open either the index file first with <Leader>ww or any other vimwiki file directly. After that <Leader>w<Leader>w will open the correct diary file.


See issue #440, which is at least somehow related.

I can confirm that I am experiencing this issue as well and that I independently discovered the same workaround. For a while I thought I had screwed up the syntax in my vimrc.

Let me know if there is any information I could provide that will assist in resolving this issue.

Looks like it's fixed now, thanks to @blyoa.

Thanks. Its working for me

Was this page helpful?
0 / 5 - 0 ratings