From 77948ded5e3e9b99cc9b3a8aea2a53775de8e5bb Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 18 Mar 2019 23:48:15 +0100 Subject: fix(abbrevURL): make ReplaceURLs() function working finally. --- plugin/spec.vim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/spec.vim b/plugin/spec.vim index b31c814..c466597 100644 --- a/plugin/spec.vim +++ b/plugin/spec.vim @@ -1,4 +1,12 @@ -noremap gG :s!https://github.com/\(.*\)/\(issues\\|pull\)/\(\d\+\)!gh#\1#\3! +function! ReplaceURLs() + s!https://github.com/\(.*\)/\(issues\|pull\)/\(\d\+\)!gh#\1#\3!e + s!https://build.suse.com/request/show/\(\d*\)!bds#\1!e + s!https://build.opensuse.org/request/show/\(\d*\)!bdo#\1!e + s!https://bugzilla.opensuse.org/\(show_bug.cgi?id=\)\?\(\d*\)!boo#\2!e + s!https://bugzilla.suse.com/\(show_bug.cgi?id=\)\?\(\d*\)!bsc#\2!e +endfunction + +noremap gG :call ReplaceURLs() " for netrw let g:netrw_browsex_viewer='setsid osurl' -- cgit