From c2d18692279b577b3d31c8c9588d92c0ad2321ce Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 29 Feb 2016 16:12:56 -0500 Subject: [PATCH] Escape tilde (~) in path names otherwise regex comparison gets upset --- autoload/vimwiki/u.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimwiki/u.vim b/autoload/vimwiki/u.vim index fd7e716..29f53e2 100644 --- a/autoload/vimwiki/u.vim +++ b/autoload/vimwiki/u.vim @@ -38,7 +38,7 @@ function! vimwiki#u#count_first_sym(line) "{{{ endfunction "}}} function! vimwiki#u#escape(string) "{{{ - return escape(a:string, '.*[]\^$') + return escape(a:string, '~.*[]\^$') endfunction "}}} " Load concrete Wiki syntax: sets regexes and templates for headers and links