On 2011-05-18, Ven Tadipatri wrote:
> So I'm in vim currently looking at a file that has another filename
> and I want to be able to open that particular file in a new, I guess
> 'buffer'. I tried ctrl+w then gf, but that opens it up into something
> that looks like a tab.
Correct. See
:help CTRL-W_gf
You probably wanted Ctrl-W f, which opens the file under the cursor
in a split window. See
:help CTRL-W_f
> The only way I could figure out how to navigate to it is by
> clicking on the tab at the top of the screen. First of all, I'm
> quite confused between tabs, windows, buffers, and viewports.
:help windows-intro
> Normally when I have a file open, I can do :new or :sp and look at
> another file and jump to it using ctrl+w, but the behavior for ctrl+w,
> then gf seems to be different. Furthermore I can't seem to get to the
> other 'tabs' using ctrl+w or :next or :bn. Is there some other command
> for navigating these tabs or whatever they're called?
:help tab-page
> Could someone help clarify things? All I want to do is be able to
> highlight the name of a file, and open it up in the
> buffer/window/viewport/tab/whatever that I get when I do :new, so I
> can navigate to it using ctrl+w.
HTH,
Gary
--
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