aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/spec.vim
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2021-04-27 10:27:08 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-03-28 17:03:38 +0100
commit027f03aae02427dcbc6903531ce7428875c56f66 (patch)
tree9cf34595e81991c49572ab078ae467fbeb2f0cd1 /plugin/spec.vim
parent5982329d8f37d7c4f1a2fdaa8ab3404198aaa339 (diff)
downloadvim-suse-changes-027f03aae02427dcbc6903531ce7428875c56f66.tar.gz
fix(plugin): gx works again
Diffstat (limited to 'plugin/spec.vim')
-rw-r--r--plugin/spec.vim28
1 files changed, 14 insertions, 14 deletions
diff --git a/plugin/spec.vim b/plugin/spec.vim
index 5583a29..67b63a6 100644
--- a/plugin/spec.vim
+++ b/plugin/spec.vim
@@ -3,17 +3,17 @@ noremap gG :,!abbrevURL<CR>
" Doesn't work because of gh#vim/vim#4738
let g:netrw_browsex_viewer='setsid osurl'
-" This is just temporary workaround until the above issue is truly
-" resolved.
-function! OpenURLUnderCursor()
- let s:uri = expand('<cword>')
- echom "s:uri = " . s:uri
- " let s:uri = matchstr(getline('.'), '[a-z]*(:\/\/\|#)[^ >,;()]*')
- " let s:uri = shellescape(s:uri, 1)
- " echom "s:uri = " . s:uri
- if s:uri != ''
- silent exec "!osurl '".s:uri."'"
- :redraw!
- endif
-endfunction
-nnoremap gx :call OpenURLUnderCursor()<CR>
+" " This is just temporary workaround until the above issue is truly
+" " resolved.
+" function! OpenURLUnderCursor()
+" let s:uri = expand('<cword>')
+" echom "s:uri = " . s:uri
+" " let s:uri = matchstr(getline('.'), '[a-z]*(:\/\/\|#)[^ >,;()]*')
+" " let s:uri = shellescape(s:uri, 1)
+" " echom "s:uri = " . s:uri
+" if s:uri != ''
+" silent exec "!osurl '".s:uri."'"
+" :redraw!
+" endif
+" endfunction
+" nnoremap gx :call OpenURLUnderCursor()<CR>