Vim Tips Wiki
(More manual cleaning to standardise format)
(Move categories to tip template)
Line 11: Line 11:
 
|version=5.7
 
|version=5.7
 
|rating=-5/18
 
|rating=-5/18
 
|category1=File Handling
  +
|category2=
 
}}
 
}}
 
The following commands open the file name under the cursor:
 
The following commands open the file name under the cursor:
Line 24: Line 26:
   
 
----
 
----
[[Category:File Handling]]
 

Revision as of 01:04, 25 April 2008

Duplicate tip

This tip is very similar to the following:

These tips need to be merged – see the merge guidelines.

This tip is very similar to Open_Filename_with_"gf" and needs to be merged


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