Adding new wikis

348 views
Skip to first unread message

Eric Weir

unread,
Jun 24, 2019, 2:26:19 PM6/24/19
to vimwiki
I was a comfortable user of vim and vimwiki for several years--as a writer; I am not a coder. I've been away several years and my skills and intuitions have gotten rusty.

I'm coming back, trying to get vim and vimwiki going with iVim on an iPad. (WIAI, the developer of iVim has done an excellent job making the iPad's virtual keyboard usable for vim. With it I think I might be able to avoid using an external keyboard, which I would very much like to do.) With a good bit of trial and error, and help here and there from skilled vim/iVim users, I'm mostly there. I'm now set up to use vimwiki the way I had been previously.

Previously I had only two wikis, a basic index wiki and a diary wiki. I'm curious about how to go about adding new wikis. In particular, I'd like to give vimwiki's todo list management capabilities a try, and I'm thinking of doing that in a new wiki. I don't remember how I created the first one back many years ago. I've studied what the manual has to say about registering wikis and am still not clear what I should do.

All that I have in my .vimrc pertinent to this topic at present is the following:

"restrict vimwiki operation to only those paths listed in g:vimwiki_list.
let g:vimwiki_global_ext = 0

My diary wiki is in a subfolder of my vimwiki folder, i.e., ~/vimwiki/diary. Should the new wiki also be put in And subfolder, e.g., ~vimwiki/todo? If I'm going to have multiple wikis should I explicitly define my original wiki as well as the new one(s)? Assuming the affirmative of both questions, will this work?

let g:vimwiki_1.path = '~/vimiki'
let g:vimwiki_1.index = 'main'
let g:vimwiki_2.path = '~/vimiki/todo'
let g:vimwiki_1.index = 'todo'

Feedback greatly appreciated. 

Einfach Toll

unread,
Jun 25, 2019, 3:33:07 PM6/25/19
to vimwiki
I'd say you want something like this:

let g:vimwiki_list = [{'path':'~/vimwiki/'}, {'path':'~/todo/'}]

You *can* put the todo wiki inside the first one, but I wouldn't recommend it. Also, I don't really understand why you want different wikis at all,
because a Wiki easily allows you to throw everything in different wiki files without one noticing the other. But whatever floats your boat.

Eric Weir

unread,
Jun 26, 2019, 7:27:33 AM6/26/19
to vimwiki
Thanks, Einfach. I wondered about that myself. And I might decide to make “To do” a of the top level links in the current index wiki. I can only say that my index wiki and diary wiki are separate wikis in separate folders. I display them in tabs in both MacVim and iVim. Switching between them does require leaving he keyboard.

Thanks again,

Eric
Reply all
Reply to author
Forward
0 new messages