Permalink
Browse files

add support for file-links

- File-Links can be supplied via
  the file:// schema and should work
  correctly in markdown and other formats.
  • Loading branch information...
1 parent eaeb344 commit a1e48c04bf629fdf3449e315203343c12cc942e8 @0robustus1 0robustus1 committed Aug 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/soywiki.vim
View
@@ -12,7 +12,7 @@ let mapleader = ','
" This regex matches namedspaced WikiWords and unqualified WikiWords
let s:wiki_link_pattern = '\C\m\<\([a-z0-9][[:alnum:]_]\+\.\)\?[A-Z][a-z]\+[A-Z0-9]\w*\>'
-let s:http_link_pattern = 'https\?:[^ >)\]]\+'
+let s:http_link_pattern = '\v(https|http|file|):[^ >)\]]+\V'
let s:wiki_or_web_link_pattern = '\C\<\([a-z0-9][[:alnum:]_]\+\.\)\?[A-Z][a-z]\+[A-Z0-9]\w*\>\|https\?:[^ >)\]]\+'
let s:rename_links_command = 'soywiki-rename '

0 comments on commit a1e48c0

Please sign in to comment.