Skip to content

Restrict plugin operation to only paths listed to wiki root #132

@dgengtek

Description

@dgengtek

Description

Is there a way to disable the plugin globally like in vimwiki with g:vimwiki_global_ext = 0?

I am currently still using vimwiki plugin until I get a working conversion from vimwiki syntax to asciidoc syntax but if I use both the vimwiki plugin and the wiki.vim plugin then for creating links is overriden by wiki.vim when working in the vimwiki root directory.

From help page of vimwiki:


*g:vimwiki_global_ext*

Control the creation of |vimwiki-temporary-wiki|s.

If a file with a registered extension (see |vimwiki-register-extension|) is
opened in a directory that is: 1) not listed in |g:vimwiki_list|, and 2) not a
subdirectory of any such directory, then:

Value           Description~
1               make temporary wiki and append it to |g:vimwiki_list|.
0               don't make temporary wiki in that dir.

If your preferred wiki extension is .txt then you can >
    let g:vimwiki_global_ext = 0
to restrict Vimwiki's operation to only those paths listed in g:vimwiki_list.
Other text files wouldn't be treated as wiki pages.

Default: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions