On 11/03/09 08:01, Gary Johnson wrote:
>
> On 2009-03-11, robert song wrote:
>> hello,everyone.
>> Is there any shortcut key that can quickly jump from endif to the
>> corresponding ifeq in Makefile ?
>
> If you source the matchit.vim plugin, e.g., by putting
>
>      runtime macros/matchit.vim
>
> in your .vimrc, you can use the % key to cycle through the ifeq,
> else and endif lines.
>
> For more info, see
>
>      :help matchit
>
> Regards,
> Gary

...and for full info, either (in Windows or any OS where soft links are 
either unknown or hard to control) copy $VIMRUNTIME/macros/matchit.txt 
to $HOME/vimfiles/doc/ -creating any needed directory as we go along- or 
(under Unix/Linux/etc.) link it by doing (in bash or similar) something like

        cd /usr/local/share/vim
        ln -sv vim72 latest
        mkdir -pv ~/.vim/doc
        cd ~/.vim/doc
        ln -sv /usr/local/share/vim/latest/doc/matchit.txt

then in Vim (for any OS):

        :if has('unix')|cd ~/.vim|else|cd ~/vimfiles|endif
        :helptags ./doc
        :cd -

Note that thanks to soft links, the above makes sure that, under 
Unix/Linux, ":help matchit.txt" will always access the latest version of 
the file, even across Vim versions if the $VIM/latest link is kept 
current. (The ":helptags" command may need to be repeated when, if ever, 
there is a change.) Under Windows, we will have to repeat the copy every 
time there is a change in $VIMRUNTIME/macros/matchit.txt (which, to be 
true, is quite seldom) and at every minor release of Vim.(which isn't 
very often though still oftener than matchit releases).


Best regards,
Tony.
-- 
If everybody minded their own business, the world would go
around a deal faster.
                -- The Duchess, "Through the Looking Glass"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to