From 13e76aed2e0588379bb56253e892b2cf3c184cb2 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Wed, 14 Jan 2015 13:34:33 +0100 Subject: [PATCH] to create a link ignores most punctuation characters now Fix #99 --- syntax/vimwiki.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntax/vimwiki.vim b/syntax/vimwiki.vim index fb52ff6..edb1cf8 100644 --- a/syntax/vimwiki.vim +++ b/syntax/vimwiki.vim @@ -83,7 +83,11 @@ let s:valid_chars = '[^\\\]]' let g:vimwiki_rxWikiLinkUrl = s:valid_chars.'\{-}' let g:vimwiki_rxWikiLinkDescr = s:valid_chars.'\{-}' -let g:vimwiki_rxWord = '[^[:blank:]()\\]\+' +" this regexp defines what can form a link when the user presses in the +" buffer (and not on a link) to create a link +" basically, it's Ascii alphanumeric characters plus #|./@-_~ plus all +" non-Ascii characters +let g:vimwiki_rxWord = '[^[:blank:]!"$%&''()*+,:;<=>?\[\]\\^`{}]\+' " [[URL]], or [[URL|DESCRIPTION]]