Thursday, November 25, 2010

Re: vim text search by autocompletion

Very good tip, Aman.
Thanks!



2010/11/23 Brett Stahlman <smoochpappy@gmail.com>


On Nov 23, 12:57 pm, Aman Jain <amanjain.nit...@gmail.com> wrote:
> Hi
>
> Somewhat in the spirit of filename completion (using tab or CTRL-D) in
> EX mode,
> is it possible to autocomplete search terms when i am trying to search
> for some text?
>
> For example:
> /msg <TAB>
> should give all suggestions of entries starting with msg,

Instead of beginning the search with `/', try `q/', then use CTRL-P
and/or CTRL-N instead of <TAB>.

:help q/
:help i_CTRL-P
:help i_CTRL-N

Brett Stahlman

> so that I don't have to type the whole search term
> "msg_foo_bar_on_and_on"
>
> Thanks

--
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



--
-------------------------------------
imedina@grosshat.com
es un mundo mágico

--
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

No comments: