[vim/vim] Can't open URL with gx after opening vim session (Issue #20934)
GamesByFelix (Vim Github Repository) <[email protected]> Mon, 03 Aug 2026 15:20:45 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/issues/[email protected]> |
----==_mimepart_6a71143ddfc1d_115118010667e Content-Type: text/plain; charset="UTF-8" GamesByFelix created an issue (vim/vim#20934) ### Steps to reproduce 1. Create a text file _url.txt_ containing a website URL, e.g. `https://www.vim.org` 2. Move the cursor over the URL and press `gx` to open it in your browser 3. Create a session file with `:mks!` 4. Exit vim and re-open it with `vim -S` 5. Move the cursor over the URL and press `gx` and get the error messages: ``` E117: Unknown function: GetWordUnderCursor E116: Invalid arguments for function dist#vim9#Open ``` ### Expected behaviour The `gx` command should open the URL no matter if vim is running a session or not. ### Version of Vim 9.2.900 ### Environment macOS 26.5.2 Terminal / xterm 2.15 zsh 5.9 (arm64-apple-darwin25.0) and Fedora Linux 44 (Workstation Edition) Termial / ptyxis 50.1 bash 5.3.9 ### Logs and stack traces ```shell ``` -- Reply to this email directly or view it on GitHub: https://github.com/vim/vim/issues/20934 You are receiving this because you are subscribed to this thread. Message ID: <vim/vim/issues/[email protected]> -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/20934%40github.com. ----==_mimepart_6a71143ddfc1d_115118010667e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div style=3D"display: flex; flex-wrap: wrap; white-space: pre-wrap; align-= items: center; "><img height=3D"20" width=3D"20" style=3D"border-radius:50%= ; margin-right: 4px;" decoding=3D"async" src=3D"https://avatars.githubuserc= ontent.com/u/211582584" /><strong>GamesByFelix</strong> created an issue <a= href=3D"https://github.com/vim/vim/issues/20934">(vim/vim#20934)</a></div> <h3 dir=3D"auto">Steps to reproduce</h3> <ol dir=3D"auto"> <li>Create a text file <em>url.txt</em> containing a website URL, e.g. <cod= e class=3D"notranslate">https://www.vim.org</code></li> <li>Move the cursor over the URL and press <code class=3D"notranslate">gx</= code> to open it in your browser</li> <li>Create a session file with <code class=3D"notranslate">:mks!</code></li= > <li>Exit vim and re-open it with <code class=3D"notranslate">vim -S</code><= /li> <li>Move the cursor over the URL and press <code class=3D"notranslate">gx</= code> and get the error messages:</li> </ol> <pre class=3D"notranslate"><code class=3D"notranslate">E117: Unknown functi= on: GetWordUnderCursor =20 E116: Invalid arguments for function dist#vim9#Open </code></pre> <h3 dir=3D"auto">Expected behaviour</h3> <p dir=3D"auto">The <code class=3D"notranslate">gx</code> command should op= en the URL no matter if vim is running a session or not.</p> <h3 dir=3D"auto">Version of Vim</h3> <p dir=3D"auto">9.2.900</p> <h3 dir=3D"auto">Environment</h3> <p dir=3D"auto">macOS 26.5.2<br> Terminal / xterm 2.15<br> zsh 5.9 (arm64-apple-darwin25.0)</p> <p dir=3D"auto">and</p> <p dir=3D"auto">Fedora Linux 44 (Workstation Edition)<br> Termial / ptyxis 50.1<br> bash 5.3.9</p> <h3 dir=3D"auto">Logs and stack traces</h3> <div class=3D"highlight highlight-source-shell" dir=3D"auto"><pre class=3D"= notranslate"></pre></div> <p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&mda= sh;<br />Reply to this email directly, <a href=3D"https://github.com/vim/vi= m/issues/20934">view it on GitHub</a>, or <a href=3D"https://github.com/not= ifications/unsubscribe-auth/ACY5DGAGXDWQGCMWSXI7NZ35IEF33AVCNFSNUABEKJSXA33= TNF2G64TZHM2DAOJZG42DQMR3JFZXG5LFHM2TANJUG4YTEMZSG6QXMAQ">unsubscribe</a>.<= br />Triage notifications, keep track of coding agent tasks and review pull= requests on the go with GitHub Mobile for <a href=3D"https://github.com/no= tifications/mobile/ios/ACY5DGBZUZDULK7IQ5F76YD5IEF33A5CNFSL4Z3JMQ5C6L3HNF2C= 22DVMIXUS43TOVSS6NJQGU2DOMJSGMZDPJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KUZT= PN52GK4S7NFXXG">iOS</a> and <a href=3D"https://github.com/notifications/mob= ile/android/ACY5DGBAVM7YCNWFOSY2IDD5IEF33A5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43= TOVSS6NJQGU2DOMJSGMZDPJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2K4ZTPN52GK4S7MF= XGI4TPNFSA">Android</a>. Download it today! <br />You are receiving this because you are subscribed to this thread.<img= src=3D"https://github.com/notifications/beacon/ACY5DGDMASFFC5L5GZFX3HT5IEF= 33BFCNFSM6AAAAAC4ZNYU4WWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHQAA= AAAEWURSQHUZZGKYLTN5XKU43VMJZWG4TJMJSWI.gif" height=3D"1" width=3D"1" alt= =3D"" /><span style=3D"color: transparent; font-size: 0; display: none; vis= ibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-wid= th: 0; max-height: 0; mso-hide: all">Message ID: <span><vim/vim/issues/2= 0934</span><span>@</span><span>github</span><span>.</span><span>com></sp= an></span></p> <script type=3D"application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/vim/vim/issues/20934", "url": "https://github.com/vim/vim/issues/20934", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script> <p></p> -- <br /> -- <br /> You received this message from the "vim_dev" maillist.<br /> Do not top-post! Type your reply below the text you are replying to.<br /> For more information, visit <a href=3D"http://www.vim.org/maillist.php">htt= p://www.vim.org/maillist.php</a><br /> <br /> --- <br /> You received this message because you are subscribed to the Google Groups &= quot;vim_dev" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">vim_dev+uns= [email protected]</a>.<br /> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= vim_dev/vim/vim/issues/20934%40github.com?utm_medium=3Demail&utm_source=3Df= ooter">https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/20934%40git= hub.com</a>.<br /> ----==_mimepart_6a71143ddfc1d_115118010667e--