Hi, while programming I often run into this situation: I have a splitted view of the same sourcefile and do a '*' on a certain -for example- variable name. But I dont want to search this in the other part of the window, not in the one where I submitted '*'.
Is there a way to make '*' to behave as follows: Press '*' once: Copy the object which is under the cursor into the search register the same way '*' would do but jump to any other place. Press '*' a second time on the same object: Do what '*' would normally do. I experimented with remapping of '*' -- as a first experiment -- to nmap * *<ctrl-o> and nmap * *^o but failed badly. How can I acchieve what I want? Thank you very much in advance for any help! Best 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. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
