Add g:vimwiki_create_link option to prevent link creation.

Adds a new global option named create_link, which allows the user to
control :VimwikiFollowLink behavior when attempting to follow a
non-existent link. The original behavior of creating a new link is
preserved. However, by setting this option to 0, new links will not be
created when pressing return over regular text. Closes #528.
This commit is contained in:
Steven Stallion
2019-03-18 14:35:28 -07:00
committed by Henry Qin
parent c4b21b498e
commit ad8e1d30bf
3 changed files with 14 additions and 1 deletions

View File

@ -2541,6 +2541,18 @@ Value Description~
Default: 1
------------------------------------------------------------------------------
*g:vimwiki_create_link*
Create target wiki page if it does not exist. See |:VimwikiFollowLink|.
Value Description~
0 Do not create target wiki page.
1 Create target wiki page.
Default: 1
------------------------------------------------------------------------------
*VimwikiLinkHandler*