From 2eae5db069dc171f74cd863487655f6a88e5384d Mon Sep 17 00:00:00 2001 From: Mehmet Samet Duman Date: Fri, 3 Apr 2026 22:21:25 +0300 Subject: NOISSUE rebrand vim to MNV's not Vim Signed-off-by: Mehmet Samet Duman --- uvim/runtime/plugin/openPlugin.vim | 46 -------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 uvim/runtime/plugin/openPlugin.vim (limited to 'uvim/runtime/plugin/openPlugin.vim') diff --git a/uvim/runtime/plugin/openPlugin.vim b/uvim/runtime/plugin/openPlugin.vim deleted file mode 100644 index b7274aadda..0000000000 --- a/uvim/runtime/plugin/openPlugin.vim +++ /dev/null @@ -1,46 +0,0 @@ -vim9script - -# Vim runtime support library -# -# Maintainer: The Vim Project -# Last Change: 2025 Jun 22 - -if exists("g:loaded_openPlugin") || &cp - finish -endif -g:loaded_openPlugin = 1 - -import autoload 'dist/vim9.vim' - -command -complete=shellcmd -nargs=1 Launch vim9.Launch(trim()) - -# technically, -nargs=1 is correct, but this throws E480: No match -# when the argument contains a wildchar on Windows -command -complete=file -nargs=* Open vim9.Open(trim()) -# Use URLOpen when you don't want completion to happen -# (or because you want to avoid cmdline-special) -command -nargs=1 URLOpen vim9.Open(trim()) - -const no_gx = get(g:, "nogx", get(g:, "netrw_nogx", false)) -if !no_gx - def GetWordUnderCursor(): string - const url = matchstr(expand(""), '\%(\%(http\|ftp\|irc\)s\?\|file\)://\S\{-}\ze[^A-Za-z0-9/]*$') - if !empty(url) - return url - endif - - const user_var = get(g:, 'gx_word', get(g:, 'netrw_gx', '')) - return expand(user_var) - enddef - - if maparg('gx', 'n') == "" - nnoremap (open-word-under-cursor) vim9.Open(GetWordUnderCursor()) - nmap gx (open-word-under-cursor) - endif - if maparg('gx', 'x') == "" - xnoremap (open-word-under-cursor) vim9.Open(getregion(getpos('v'), getpos('.'), { type: mode() })->join()) - xmap gx (open-word-under-cursor) - endif -endif - -# vim: ts=8 sts=2 sw=2 et -- cgit 0.0.5-2-1-g0f52