On 7月15日, 上午6时48分, Marc Weber <marco-owe...@gmx.de> wrote:
> > :set smartsearch="[a-zA-Z]"
> > and/or
> > :set smaltsearchfun=myfun()
>
> the latter is much better
>
> By the way: you don't have to start coding this thing in c
> You can write this in some vim script lines (however it'll start
> searching after pressing enter and not on the fly)
>
> By the way: Have a look at :h pattern.
> There is \s and \S and such which makes life easier..
>
> Try this:
>
> noremap <F11> :call<space>feedkeys('/'.substitute(input('smart 
> search'),'\(\S\+\)\s*','\\<\1\\S*\\>\\s*','g').nr2char(10))<cr>
>
> Another tip: If you're trying to match text within a block. Don't search
> for "If you're" but try "'re t" or "ch te" instead of "match text".
> In most cases this is uniq enough.
>
> Marc Weber


but maybe I need another feature...

we have cmdline complete now, but why we can't have search complete?
just C-X_C-N for buffer complete, and C-X_C-V for vim complete. is it
difficult?
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui