I tried this search functions before, but thought they did not work as I was 
expecting a fuzzy search like the one on ZSH.

I remapped as you suggested:

bind \? history-search-backward                                                 
                                                                                
                    
bind / history-search-forward

And although it’s a bit off-putting compared to a fuzzy search, I does the job.

Thanks Greg for the hint !

> On Aug 4, 2015, at 10:10 AM, Greg Reagle <greg.rea...@umbc.edu> wrote:
> 
>> I was wondering if there is any simple way to map ? and / to backward and
>> forward history search à là vim in vim mode ? I combed the web and the
>> doc, and could not find history backward and forward search.
> 
> Hello.  I'd like to help, but I am not a vi user (I worship in the
> Church of Emacs) and I've never used fish_vi_mode before.  So take my
> advice with a big grain of salt.  If you run fish_vi_mode and look at
> the output of bind, you'll see these two lines:
> 
> bind u    history-search-backward
> bind \cr  history-search-forward
> 
> Maybe substitute / and ? in thesee bind commands and you'll get what you
> want?
> 
> -- 
> http://www.fastmail.com - A no graphics, no pop-ups email service
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to