guillermooo / Vintageous

Vi/Vim emulation for Sublime Text 3
http://guillermooo.bitbucket.org/Vintageous/
Other
1.64k stars 115 forks source link

/ and ? search, add ':set ic' and ':set noic' command options? #522

Open jesseleite opened 10 years ago

jesseleite commented 10 years ago

I can't find anyway to do case insensitive search using / and ? If there currently is no ability, maybe we could get :set ic and :set noic options?

--- Want to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/1815655-and-search-add-set-ic-and-set-noic-command-options?utm_campaign=plugin&utm_content=tracker%2F204305&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F204305&utm_medium=issues&utm_source=github).
guillermooo commented 10 years ago

Could you please link to any relevant Vim docs? That would save me some research time.

jesseleite commented 10 years ago

Sure :)

:set ic (shorthand for :set ignorecase) should change the / and ? search functionality to be case insensitive. :set noic (shorthand for :set noignorecase) should reset / and ? search functionality back to default, which is case sensitive.

Here is link to Vim Docs: Vim Doc: http://vimdoc.sourceforge.net/htmldoc/options.html#'ic' (Edit: That's weird, sometimes when I click on this link, it doesn't scroll page to proper section. If that happens, just search that page for 'ic', 'ignorecase', 'noic', or 'noignorecase', and you will find what you need there.)

PS. I am not Vim expert (just learning), but I think you can make real vim remember ':set ic' as default so that / and ? searches always use case insensitive matching. If you implement the above commands, is there a way to run commands automatically when Vintageous starts/resets?

guillermooo commented 10 years ago

MD doesn't like this url:

docs

jesseleite commented 10 years ago

MD?

guillermooo commented 10 years ago

I think it rather goes by M↓ these days :)

jesseleite commented 10 years ago

I'm so confused! :(

guillermooo commented 10 years ago

:) It's markdown, the lightweight markup language GitHub uses. GH tries to detect hyperlinks in comments but the last single quote trips up the parser, I guess.

jesseleite commented 10 years ago

Ohhhhh markdown yeah lol. That went over my head. But shouldn't have :)

ebrady commented 9 years ago

Just thought I'd check in on the case sensitive / and ? search capability. I too would much prefer the default be case sensitive (like vim/vi) if that is possible (with perhaps a setting to control it). Anyhow, thanks much for all the great work (and your responsiveness on previous requests I've had).