Wu, Yue schrieb:
> On Sun, 07 Jun 2009 07:00:15 +0800, Matt Wozniski <[email protected]> wrote:
>
>> On Sat, Jun 6, 2009 at 11:47 AM, Wu, Yue wrote:
>>> On Thu, 04 Jun 2009 06:36:57 +0800, Wu, Yue wrote:
>>>
>>>> I want the <C-]> and <C-t> work like forward/backward in web browser,
>>>> so
>>>> for
>>>> example, when I hit <C-]>, if the tag is in current buffer, then vim
>>>> jumps to it
>>>> as normal, if not, then vim will bwipeout the current buffer and jump
>>>> to
>>>> the tag
>>>> buffer.
>>>>
>>> Hi, any suggestions?
>> Am I missing something, or is that exactly what happens if you
>>
>> :set nohidden switchbuf=
>>
>> before using <C-]> or <C-t> ?
>>
>
> No, your way doesn't solve my question at all, I want to bwipeout the
> current
> buffer when jumping to the other file that has the tag, but if the tag is
> located in the current file, then jump to it without bwipeout.
Perhaps your looking for the 'bufhidden' option?
:set bufhidden=wipe
in the vimrc (didn't test it).
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---