Vim Tips Wiki
Advertisement
Tip 299 Printable Monobook Previous Next

created August 6, 2002 · complexity intermediate · author Little Dragon · version 5.7


The following commands open the file name under the cursor:

  • gf to open it in the same window
  • <c-w>f to open it in a new window
  • <c-w>gf to open it in a new tab

See :help gf, :help ctrl-w_f, :help ctrl-w_gf for more details.

You can come back to the previous buffer using <c-^> or <c-o>. See :help ctrl-^ and :help ctrl-o for more details.

Comments


Advertisement