About: Open the folder containing the currently open file   Sponge Permalink

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

The easy way to browse a file's directory without leaving Vim, is to use one of the built-in Netrw commands to open the current file's directory: * [ help :Explore] * [ help netrw-:Explore] * [ help netrw-:Sexplore] * [ help netrw-:Vexplore] * [ help netrw-:Hexplore] * [ help netrw-:Texplore] Netrw or some of its replacements (like NERDtree) also allow simply editing a directory name to bring up a directory browser, for example with :new %:p:h. If you have Vim 7.4.191 or higher, the mapping can be shortened to:

AttributesValues
rdfs:label
  • Open the folder containing the currently open file
rdfs:comment
  • The easy way to browse a file's directory without leaving Vim, is to use one of the built-in Netrw commands to open the current file's directory: * [ help :Explore] * [ help netrw-:Explore] * [ help netrw-:Sexplore] * [ help netrw-:Vexplore] * [ help netrw-:Hexplore] * [ help netrw-:Texplore] Netrw or some of its replacements (like NERDtree) also allow simply editing a directory name to bring up a directory browser, for example with :new %:p:h. If you have Vim 7.4.191 or higher, the mapping can be shortened to:
Version
  • 7(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 309(xsd:integer)
Category
  • File Handling
Text
  • NERDtree
Author
  • Thomas R. Kimpton
Complexity
  • basic
Created
  • 2002-08-13(xsd:date)
ID
  • 311(xsd:integer)
  • 1658(xsd:integer)
NEXT
  • 312(xsd:integer)
Rating
  • 87(xsd:integer)
abstract
  • The easy way to browse a file's directory without leaving Vim, is to use one of the built-in Netrw commands to open the current file's directory: * [ help :Explore] * [ help netrw-:Explore] * [ help netrw-:Sexplore] * [ help netrw-:Vexplore] * [ help netrw-:Hexplore] * [ help netrw-:Texplore] Netrw or some of its replacements (like NERDtree) also allow simply editing a directory name to bring up a directory browser, for example with :new %:p:h. If you prefer the Windows Explorer GUI, this key map opens the folder that contains the currently open file, checking first to prevent trying to open the folder of an unnamed buffer. if has("win32") " Open the folder containing the currently open file. Escape properly for Windows cmd shell. nnoremap :if expand("%:p:h") != "" \| exec "!start explorer.exe" shellescape(expand("%:p:h")) \| endif endif If you have Vim 7.4.191 or higher, the mapping can be shortened to: nnoremap :if expand("%:p:h") != "" \| exec "!start explorer.exe" expand("%:p:h:S") \| endif Note, if you are using the 'shellslash' option, you will need to temporarily toggle it off in your mapping before using shellescape().
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