diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2020-05-28 16:28:41 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-03-28 17:00:15 +0100 |
commit | 9a81092c7fb6eb36498bc0e2710b8420752a8f5a (patch) | |
tree | 0a5a09835ab67196de5fd2d71e256ad224c81de3 /plugin/spec.vim | |
parent | 480e0a80421b5f19c83cd43bee19fbb781284ecc (diff) | |
download | vim-suse-changes-9a81092c7fb6eb36498bc0e2710b8420752a8f5a.tar.gz |
feat(abbrevURL): switch abbreviating to SUSE abbrs to external command.
Diffstat (limited to 'plugin/spec.vim')
-rw-r--r-- | plugin/spec.vim | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/plugin/spec.vim b/plugin/spec.vim index 376e666..6dc02dc 100644 --- a/plugin/spec.vim +++ b/plugin/spec.vim @@ -1,20 +1,4 @@ -function! ReplaceURLs() - s!https://github.com/\(.*\)/\(issues\|pull\)/\(\d\+\)!gh#\1#\3!e - s!https://gitlab.com/\(.*\)/\(-/\)\?\(issues\|pull\)/\(\d\+\)!gl#\1#\4!e - s!https://\(sourceforge\|sf\).net/support/tracker.php?aid=\(\d\+\)!sh#\2!e - s!https://\(sourceforge\|sf\).net/p/\(.*\)/bugs/\(\d\+\)/!shb#\2#\3!e - s!https://\(sourceforge\|sf\).net/p/\(.*\)/patches/\(\d\+\)/!shp#\2#\3!e - s!https://bitbucket.org/\(.*\)/issues/\(\d\+\)!bt#\1#\2!e - s!https://build.suse.de/request/show/\(\d*\)!ssr#\1!e - s!https://build.opensuse.org/request/show/\(\d*\)!sr#\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 - 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> +noremap gG :,!abbrevURL<CR> " for netrw let g:netrw_browsex_viewer='setsid osurl' |