Meghdad Azriel wrote:
I was just kidding ;)

I know that they are not secret but, they´re not that intuitive... and i´m
still learning how to use that help  effectivelly...


maybe I neet to read those basic files with care...
[...]

To use the help effectively, one should learn to use the tools Vim itself includes to search the help (see, among others, ":help :help" and ":help :helpgrep"):

        :help <topic>

brings you to the help for <topic> if there is one, otherwise to some help topic "resembling" what you typed

        :help pattern<Tab>

completes your command-line with the first help topic matching the pattern. Hit <Tab> again to see the next one. Hit Ctrl-D to see them all. If you have 'wildmenu' on, the bottom status line will be replaced by a "menu" of possible matches: hit <Left> or <Right> to select, <Enter> to accept, <Esc> to abort.

        :helpgrep pattern

searches the whole help text for /pattern/. The results are used to build a "quickfix error list" (see ":help quickfix.txt"). Then the following commands may come useful:

        :cn[ext]
        :cp[revious] or :cN[ext]
        :cnf[ile]
        :cpf[ile] or :cNf[ile]
        :cfir[st] or :cr[ewind]
        :cla[st]

to navigate the list, displaying the helpfiles with the cursor on a match;

        :cope[n]

to open the list of matching lines in its own split-window, where you can position the cursor on any of those lines then hit <Return> to see the same line in context in its helpfile;

        :ccl[ose]

to close the quickfix window, even if it is not the current window. (Brackets represent the optional part of the command names: e.g. ":cp[revious]" means that the ":cprevious" command can be abbreviated to any of :cp :cpr :cpre :cprev etc.)

If you often use the ":helpgrep" command and/or other quickfix commands such as ":make" ":vimgrep" etc., you may find the following mappings handy (replace the left-hand side by whatever suits you):

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


Best regards,
Tony.

Reply via email to