blob: 0978c60c3e5610811817121b4c5034d9a97dc32b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
function! ReplaceURLs()
s!https://github.com/\(.*\)/\(issues\|pull\)/\(\d\+\)!gh#\1#\3!e
s!https://bitbucket.org/\(.*\)/issues/\(\d\+\)!bt#\1#\2!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'
|