On Wed, Jun 24, 2009 at 12:02 PM, <[email protected]> wrote:
>
>
> Hi,
>
> with */# I want to browse through C/C++ code, but the
> cursor should remain where I used */# the first time
> and the current window should be splitted and any
> other match should be found and shown there.
> For reasons I cannot explain fully (since I dont know them)
> I am not allowed to install anything else than vim
> and its scriptd. No ctags, no cscope (sigh).
> For this I am using vim under Windows. Normally
> I am using vim under Linux/Unix.
> I search the help and found nothing appropiate...
>
> Does anyone have any hint for me ?
>
> Kind regards and thank you very much in advance,
> mcc

Just map those keys to split the window, then perform their usual action.  Eg

    nnoremap * <C-w>s*
    nnoremap # <C-w>s#

or, if you'd prefer a new tab to a new split, you could use something like

    nnoremap * :tab split<CR>*
    nnoremap # :tab split<CR>#

~Matt

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

Reply via email to