Tuesday, December 15, 2009

Re: How show the file open by ":new" in a new tab?

Hi Peng!

On Di, 15 Dez 2009, Peng Yu wrote:

> Is there a way to move a tab into another tab (basically the reverse
> of the above operation)?

You want to move a tab into a window? I don't think so, because a tab
can contain several windows. But if you want to move the current buffer
in your tabpage to a window in the previous tab, you can probably do
something like:
noremap <C-W>X :let lwindow=bufnr('')<bar>:tabclose<bar>:exe ":sb".lwindow<CR>
(one line)

This will fail, if any of the open buffers in the current tabpage is
modified and the hidden option is not set.

regards,
Christian
--
hundred-and-one symptoms of being an internet addict:
21. Your dog has its own home page.

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

No comments: