About: Open file under cursor   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

The following commands open the file name under the cursor: We usually type gf in normal mode in which case Vim has to determine where the file name starts and ends. It does that by taking all characters matching the 'isfname' option. Alternatively, you can visually select the file name, then type gf in which case Vim will use the selected text. :map :vertical wincmd f When writing a program, it is helpful to set the 'path' option to list the directories with your include files. Then you can easily open an include file. You can return to the previous buffer using Ctrl-^ or Ctrl-o.

AttributesValues
rdfs:label
  • Open file under cursor
rdfs:comment
  • The following commands open the file name under the cursor: We usually type gf in normal mode in which case Vim has to determine where the file name starts and ends. It does that by taking all characters matching the 'isfname' option. Alternatively, you can visually select the file name, then type gf in which case Vim will use the selected text. :map :vertical wincmd f When writing a program, it is helpful to set the 'path' option to list the directories with your include files. Then you can easily open an include file. You can return to the previous buffer using Ctrl-^ or Ctrl-o.
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 298(xsd:integer)
Category
  • File Handling
Text
  • file:line plugin
  • searchInRuntime
Complexity
  • basic
Created
  • 2002(xsd:integer)
ID
  • 229(xsd:integer)
  • 299(xsd:integer)
  • 2184(xsd:integer)
NEXT
  • 301(xsd:integer)
abstract
  • The following commands open the file name under the cursor: We usually type gf in normal mode in which case Vim has to determine where the file name starts and ends. It does that by taking all characters matching the 'isfname' option. Alternatively, you can visually select the file name, then type gf in which case Vim will use the selected text. With the cursor on a file name, pressing Ctrl-w then f (or Ctrl-f) will open the file in a new window (after a horizontal split). If you want a vertical split, you could next type Ctrl-w L to move the window to the right. Or, you could map a key to perform a vertical "go to file" split (:vertical makes what follows split vertically; :wincmd is a command that is equivalent to pressing Ctrl-w): :map :vertical wincmd f When writing a program, it is helpful to set the 'path' option to list the directories with your include files. Then you can easily open an include file. If there are several files in your 'path' that match the name under the cursor, gf opens the first, while 2gf opens the second, and 3gf opens the third, etc. You can return to the previous buffer using Ctrl-^ or Ctrl-o.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software