Vim Tips Wiki

Changes: Script:858


Back to page

(standard format and minor tweaks)
(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
Line 1: Line 1:
{{ScriptComments|858|LocateOpen: open files without having to supply a path}}
{{ScriptComments|LocateOpen: open files without having to supply a path}}

Latest revision as of 08:06, November 15, 2011

Use this page to discuss script 858 LocateOpen: open files without having to supply a path

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.


This is a quite helpful script. I did a slight modification to use a generic "locate" command. I'm using mlocate which is slocate compatible. I simply added another else-if statement for the "locate" command and everything is working fine.

Edit the block of conditions that starts at line 24 so that it looks like:

if executable("slocate")
   let s:slocate_app         = "slocate"
elseif executable("rlocate")
   let s:slocate_app         = "rlocate"
elseif executable("locate")
   let s:slocate_app         = "locate"

Around Wikia's network

Random Wiki