On 15/08/12 03:45, Blue wrote:
On Aug 14, 4:38 pm, sc <[email protected]> wrote:
On Tue, Aug 14, 2012 at 01:36:42PM -0700, Blue wrote:
Is it possible to search within the results in the More prompt (using
'/' like the less command)? It doesn't look like there's builtin
support for that feature, but maybe it's possible via a plugin or
using $PAGER?

you can use the :redir command to redirect messages to a file,
register, or variable, then search the file, or manipulate the
register, or however best suits your style

see

     :h redir

for details

That would work for some cases, but the more frequent case I run into
is doing command-line completion, like :help a<tab> and get a multi-
page list that I want to search through, because the list is usually
not sorted in any discernible manner. The completion output uses the
same More prompt, so I was hoping there was some generic mechanism
that would work for this case as well.


By setting 'wildmenu' (which requires a Vim compiled with +wildmenu, which means a Normal, Big or Huge version) you can get a menu on the statusbar (Tab or → goes forward, Shift-Tab or ← goes back, Enter selects, Esc abandons). The menu is sorted, but not alphabetically: see ":help {subject}" (without the quotes, and with seven letters between the braces — in general the "best" matches come first, which, for help tag completion, means an exact match, or a same-case match, or a shorter match). You can also use the 'wildmode' option to influence that menu somewhat. I use
        if has('wildmenu')
                set wildmenu wildmode=longest:full,full
        endif
but YMMV.

See
        :help {subject}
        :help 'wildmenu'
        :help 'wildmode'


Best regards,
Tony.
--
Ed Sullivan will be around as long as someone else has talent.
                -- Fred Allen

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to