From e07d2b364f5877c0689cd932d4191e1760bbf5c5 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 31 May 2021 08:34:56 +0200 Subject: fix(plugin): remove netrw#gx workarounds. Also improve SPEC patch snippet (UPSTREAM is the most common use). --- plugin/gx_remap.vim | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 plugin/gx_remap.vim (limited to 'plugin') diff --git a/plugin/gx_remap.vim b/plugin/gx_remap.vim deleted file mode 100644 index 8d097f1..0000000 --- a/plugin/gx_remap.vim +++ /dev/null @@ -1,19 +0,0 @@ -" Doesn't work because of gh#vim/vim#4738 -" let g:netrw_browsex_viewer='setsid osurl' -let g:netrw_nogx=1 - -" This is just temporary workaround until the above issue is truly -" resolved. -" https://github.com/vim/vim/issues/4738#issuecomment-830820565 -" https://bugzilla.suse.com/show_bug.cgi?id=1173583 -" (https://bugzilla.suse.com/show_bug.cgi?id=1173583) -" gh#vim/vim#4738 -function! OpenURLUnderCursor() - let s:uri = expand('') - echom "s:uri = " . s:uri - if s:uri != '' - silent exec "!osurl '".s:uri."'" - :redraw! - endif -endfunction -nnoremap gx :call OpenURLUnderCursor() -- cgit