aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/spec.vim
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2019-11-14 17:58:30 +0100
committerMatěj Cepl <mcepl@cepl.eu>2024-03-28 16:57:04 +0100
commit1b7ca2f5e4f61c1b6e05f5e08c452e10811894b9 (patch)
treeb3bbe43d04f0380f94eb8c578891c21bde284536 /plugin/spec.vim
parent7dbf103f95a07c18b64452dd50d3bd2bc453e446 (diff)
downloadvim-suse-changes-1b7ca2f5e4f61c1b6e05f5e08c452e10811894b9.tar.gz
feat(abbrevURL): gG can shorten launchpad URL as well
Diffstat (limited to 'plugin/spec.vim')
-rw-r--r--plugin/spec.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/spec.vim b/plugin/spec.vim
index b80378d..e8614ad 100644
--- a/plugin/spec.vim
+++ b/plugin/spec.vim
@@ -11,6 +11,7 @@ function! ReplaceURLs()
s!https://bugzilla.suse.com/\(show_bug.cgi?id=\)\?\(\d*\)!bsc#\2!e
s!https://jira.suse.\(com\|de\)/browse/\(\d*\)!jsc#\2!e
s!https://bugs.python.org/issue\(\d\+\)!bpo#\1!e
+ s!https://bugs.launchpad.net/\([^/]\+\)/+bug/\(\d\+\)!lp#\2!e
endfunction
noremap gG :call ReplaceURLs()<CR>