Open files in GVIM in a new tab instead substitute current file

10 views
Skip to first unread message

Francisco M. Marzoa Alonso

unread,
Dec 14, 2011, 3:42:25 AM12/14/11
to vim...@googlegroups.com
Hello,

When I open a new file in gvim with the open file icon, it's loaded
substituting the one I am editing in that moment. I rather like to be
open in a new tab instead. Is there any configuration option on .vimrc
to achieve this?

Thanks a lot in advance,

:wq


Ivan Krasilnikov

unread,
Dec 14, 2011, 9:07:08 AM12/14/11
to vim...@googlegroups.com
On Wed, Dec 14, 2011 at 09:42, Francisco M. Marzoa Alonso
<fmma...@gmail.com> wrote:
> When I open a new file in gvim with the open file icon, it's loaded
> substituting the one I am editing in that moment. I rather like to be
> open in a new tab instead. Is there any configuration option on .vimrc
> to achieve this?

Open file icon in the toolbar is created by menu.vim with this command:
an 1.10 ToolBar.Open :browse confirm e<CR>

So I guess you can put the following command in your vimrc to make the
icon open file in a new tab:
an 1.10 ToolBar.Open :browse confirm tabe<CR>

Reply all
Reply to author
Forward
0 new messages