Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignorecase setting also ignores case for tab complete in command mode #991

Open
Rycieos opened this issue Aug 19, 2016 · 1 comment
Open

Comments

@Rycieos
Copy link

Rycieos commented Aug 19, 2016

With ignorecase set, searches will ignore case. However, tab complete for command mode will then also ignore case.

Example: Have command Vsplit set. Type :vsp<TAB>
Expected: vim autocompletes to :vsplit
Actual: vim first autocompletes to :Vsplit (unless wildmode is set, then it shows both)

While I like this feature, it is confusing, and feels like it should be a separate options. Thoughts?

@brammool
Copy link
Contributor

Mark Vander Stel wrote:

With ignorecase set, searches will ignore case. However, tab
complete for command mode will then also ignore case.

Example: Have command Vsplit set. Type :vsp<TAB>
Expected: vim autocompletes to :vsplit
Actual: vim first autocompletes to :Vsplit (unless wildmode is set, then it shows both)

While I like this feature, it is confusing, and feels like it should
be a separate options. Thoughts?

Yes, 'ignorecase' applies to too many situations. It would be possible
to add an option like 'tagcase'.

There are more contexts where one might not want 'ignorecase' to apply.
I suppose we would need to add an option for each of them.

Another nasty thing is the =~ operator. Although it's possible to use
=~# it's also easy to forget. Perhaps a ":keepcase" command in a script
could be used to ignore 'ignorecase' in one file. Won't be so easy to
implement though.

Nothing is fool-proof to a sufficiently talented fool.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\ an exciting new programming language -- http://www.Zimbu.org ///
\ help me help AIDS victims -- http://ICCF-Holland.org ///

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants