Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Can't open URL with gx after opening vim session

Aperta
#20,934 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
vim
Ambito
cli

Direzione di ricerca

Start by reproducing the failure with the gx command before and after saving a session with :mks!, then reopening with vim -S. Trace the gx path and the reported GetWordUnderCursor and dist#vim9#Open errors; done means gx opens the URL successfully both with and without a restored session.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
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

Lingua principale
Vim Script
Stelle
41k
Fork
6.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vim/vim

Tutte le issue di vim/vim

Issue simili

Altre issue su CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.