[vim/vim] [defaults] Include `]` and `[` as defaults for `isfname` (on all platforms, or at least for UNIX / Linux) (Issue #19147)

5 views
Skip to first unread message

Igor Lacerda

unread,
Jan 10, 2026, 11:07:10 AM (6 days ago) Jan 10
to vim/vim, Subscribed
igorlfs created an issue (vim/vim#19147)

[ and ] can be used as regular filename characters (at least on Linux). And yet, isfname does not include these by default.


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19147@github.com>

Christian Brabandt

unread,
Jan 15, 2026, 4:31:22 PM (11 hours ago) Jan 15
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19147)

Well, I'd say [ and ] are extremely unlikely characters to be find in filenames on Unix. except for /usr/bin/[ I am not aware of any such characters actually in use. I don't think changing the default for those characters makes sense, but that does not mean, you cannot tweak that default to your liking.


Reply to this email directly, view it on GitHub.

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

Igor Lacerda

unread,
Jan 15, 2026, 4:41:56 PM (11 hours ago) Jan 15
to vim/vim, Subscribed
igorlfs left a comment (vim/vim#19147)

are extremely unlikely characters to be find in filenames on Unix.

On the contrary, it's rather common within web frameworks, to denote parametrized routes. Example.

you cannot tweak that default to your liking.

That's what I ended up doing (for the time being), but due to the prevalence of such web frameworks, I think there's an argument to be made that this should be the default.

Sorry if initial comment wasn't clear that this is, in fact, a lot more common than it seems!


Reply to this email directly, view it on GitHub.

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

Reply all
Reply to author
Forward
0 new messages