Matt Wozniski <[email protected]> [09-06-24 18:29]: > > 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 >
Hi Matt, thank you for your reply ! :) ... this would split the window with each */# I will press after the first one, wouldn't it ?!? And produce a lot of tabs... After the window is split it should work as a normal */# until I will change the searched object... Any idea? Kind regards, mcc > -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
