[vim/vim] The absolute path of the auto-suggested file is displayed too long (Issue #21080)

5 views
Skip to first unread message

Pixeller

unread,
Aug 17, 2026, 10:42:16 PM (12 hours ago) Aug 17
to vim/vim, Subscribed
Angluca created an issue (vim/vim#21080)
Image: Image (view on web)

can it be set to a relative path or only dict file name?


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/21080@github.com>

zeertzjq

unread,
Aug 17, 2026, 11:41:16 PM (11 hours ago) Aug 17
to vim/vim, Subscribed
zeertzjq left a comment (vim/vim#21080)

The following change will make it a home-relative path:

diff --git a/src/insexpand.c b/src/insexpand.c
index 203ea6fc3..4cb8306e2 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -1041,7 +1041,7 @@ ins_compl_add(
 	match->cp_fname = compl_curr_match->cp_fname;
     else if (fname != NULL)
     {
-	match->cp_fname = vim_strsave(fname);
+	match->cp_fname = home_replace_save(NULL, fname);
 	flags |= CP_FREE_FNAME;
     }
     else

I'm not sure if that's short enough.


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/21080/5323298921@github.com>

Pixeller

unread,
1:03 AM (10 hours ago) 1:03 AM
to vim/vim, Subscribed
Angluca left a comment (vim/vim#21080)

Modifying the source code is too troublesome for newble. T_T
Maybe some related settings would be better, like this set shortmess+=c ?


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/21080/5323837023@github.com>

Christian Brabandt

unread,
2:48 AM (8 hours ago) 2:48 AM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#21080)

What kind of a bug report is this without filling out the report template? How about providing reproduction steps? I have no idea how you got that completion window. Sorry, closing as invalid. Please try better next time.


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/21080/5324627832@github.com>

Reply all
Reply to author
Forward
0 new messages