commit 13e76aed2e0588379bb56253e892b2cf3c184cb2 parent 43cad8742696047cf13112ec01ef0d23008c9996 Author: EinfachToll <istjanichtzufassen@googlemail.com> Date: Wed, 14 Jan 2015 13:34:33 +0100 <CR> to create a link ignores most punctuation characters now Fix #99 Diffstat:
M | syntax/vimwiki.vim | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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 <CR> 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]]