Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vim tab, open file under cursor

157 views
Skip to first unread message

kermit l'assureur

unread,
Apr 28, 2010, 1:57:15 AM4/28/10
to
hi,

With vim (both on mac and linux)

I would like to open a file which the path is under cursor in the
current buffer, directly in a new tab
In fact i would like something like ":tabe gf" but this doesn't work.
<ctrl-w><ctrl-f> works, it opens the file in a new window, but i
cannot find the way to do this with tabs.
Has vim a standard way to do this or should i do a macro (but how ?)

Thanks.

Christian Brabandt

unread,
Apr 28, 2010, 2:10:58 AM4/28/10
to

:h CTRL-W_gf

regards,
Christian

Stephane CHAZELAS

unread,
Apr 28, 2010, 2:24:28 AM4/28/10
to
2010-04-27, 22:57(-07), kermit l'assureur:
[...]

> With vim (both on mac and linux)
>
> I would like to open a file which the path is under cursor in the
> current buffer, directly in a new tab
[...]

:tabe <cfile>

should work

so would CTRL-W gF

--
Stéphane

kermit l'assureur

unread,
Apr 28, 2010, 3:37:30 AM4/28/10
to
> :h CTRL-W_gf

thank you, that's it.
Sorry to have not find it without help.

0 new messages