diff --git a/runtime/plugin/openPlugin.vim b/runtime/plugin/openPlugin.vim index ff9c5a3857..b7274aadda 100644 --- a/runtime/plugin/openPlugin.vim +++ b/runtime/plugin/openPlugin.vim @@ -3,7 +3,7 @@ vim9script # Vim runtime support library # # Maintainer: The Vim Project -# Last Change: 2025 Jun 11 +# Last Change: 2025 Jun 22 if exists("g:loaded_openPlugin") || &cp finish @@ -34,10 +34,12 @@ if !no_gx enddef if maparg('gx', 'n') == "" - nnoremap gx vim9.Open(GetWordUnderCursor()) + nnoremap (open-word-under-cursor) vim9.Open(GetWordUnderCursor()) + nmap gx (open-word-under-cursor) endif if maparg('gx', 'x') == "" - xnoremap gx vim9.Open(getregion(getpos('v'), getpos('.'), { type: mode() })->join()) + xnoremap (open-word-under-cursor) vim9.Open(getregion(getpos('v'), getpos('.'), { type: mode() })->join()) + xmap gx (open-word-under-cursor) endif endif