aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/spec.vim10
1 files changed, 9 insertions, 1 deletions
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!<CR><CR>
+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()<CR>
" for netrw
let g:netrw_browsex_viewer='setsid osurl'