Hello...

another idea that I would like to see one day implemented is a smarter
search.
I am not lazy to type but often I am in the situation where instead of
typing

/the great emperror

i would be much faster by typing only

/t gr e

well one could do that by writing an annoying expression like

/t[a-zA-Z]* g[a-zA-Z]* e[a-zA-Z]*

but until I write that long regexp, I write 5 times the original expression
"the great emperror"
well, the code needs little change in my opinion to implement sthg. like
that,
and it would be activated by a switch similar to

:set incsearch.

probably:

:set smartsearch="[a-zA-Z]"
and/or
:set smaltsearchfun=myfun()

I implemented a skeleton in ex_getln.c for the incremental search, attached
please
find the diff (please do not comment hte style... it is late and I am tired,
and I am a
 bad C programmer :) )

Maybe I am obsessed by mobile devices, but searching information on a mobile
 device with vim is a great idea, but such "smart search" features would
improve
 the experience....

Obviously the patterns "[a-zA-Z]" should be read from the config file... or
even a
function should be defineable that would change the already inserted search
string
at each iteration of the incremental search

Please help VIM to evolve :)


rgrds,
mobi phil

being mobile, but including technology
http://mobiphil.com

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui