On 03/06/10 08:19, Andrei Popescu wrote:
On Mi, 02 iun 10, 22:28:38, Tony Mechelynck wrote:

But when all hope of finding your needle in that huge haystack seems
lost, there is one extremely useful command: :helpgrep. It accepts
one Vim-style regular expression (without the bounding slashes) and
will search the whole contents on the help for anything matching
that pattern. Results are given as a quickfix list (see :help
quickfix.txt), navigate them with :cnext, :cprev, :cnfile, :cpfile,
:cfirst, :clast (which may of course be assigned to single keys,
e.g.

        :map<F2>  :cnext<CR>
        :map<S-F2>  ;cprev<CR>

before cprev it should be a : not ; character (of course).


or else, :copen will open (and, afterwards, :cclose will close) a
window showing one line per match with the filename, linenumber, and
the relevant line of text.

Wow, that's a great tip!

Regards,
Andrei

...and I forgot to say: hit Enter on any line of the quickfix window to see the corresponding line in context (as part of the file it came from).


Best regards,
Tony.
--
ARTHUR:        I command you as King of the Britons to stand aside!
BLACK KNIGHT:  I move for no man.
The Quest for the Holy Grail (Monty Python)

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