[vim/vim] Can't open URL with gx after opening vim session (Issue #20934)

5 views
Skip to first unread message

GamesByFelix

unread,
Aug 3, 2026, 6:20:56 PM (17 hours ago) Aug 3
to vim/vim, Subscribed
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


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20934@github.com>

GamesByFelix

unread,
Aug 3, 2026, 6:24:19 PM (17 hours ago) Aug 3
to vim/vim, Subscribed
GamesByFelix left a comment (vim/vim#20934)

The workaround for this issue is to select the URL in visual mode (e.g. viW) and then open it with gx.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20934/5172382795@github.com>

Foxe Chen

unread,
4:01 AM (7 hours ago) 4:01 AM
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#20934)

what is the value of 'sessionoptions' option?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20934/5176220524@github.com>

GamesByFelix

unread,
4:28 AM (7 hours ago) 4:28 AM
to vim/vim, Subscribed
GamesByFelix left a comment (vim/vim#20934)

what is the value of 'sessionoptions' option?

In both environments:
sessionoptions=blank,buffers,curdir,folds,help,options,tabpages,winsize,terminal


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20934/5176478057@github.com>

Reply all
Reply to author
Forward
0 new messages