html_FileCompletion : Base dir- and URL-aware file completion for HTML links.
| script karma
Downloaded by 133
Comments, bugs, improvements
script versions (upload new version)
This plugin offers insert mode file completion for HTML links to local files,
taking into account a base directory (document root) and base URL (web server
location) to enable completion of absolute (/foo...) and fully qualified
CTRL-X CTRL-F Find matches for file names that start with the same
'isfname' characters as before the cursor. File names
are inserted in URL-escaped form (e.g. <Space> -> %20)
and always with forward slashes as path separator.
An absolute file path starting with "/" is interpreted
relative to b:basedir, and a base URL b:baseurl is
stripped off the front. This enables you to complete
file links even though they are specified as absolute
or fully qualified links in the HTML.
This script is packaged as a vimball. If you have the "gunzip" decompressor
in your PATH, simply edit the *.vba.gz package in Vim; otherwise, decompress
the archive first, e.g. using WinZip. Inside Vim, install by sourcing the
vimball or via the :UseVimball command.
To uninstall, use the :RmVimball command.
- Requires Vim 7.0 or higher.
Set the following variables in autocmds, filetype plugins or a local vimrc:
Specifies the local directory that represents the document root of the edited
HTML file, i.e. where an absolute link starting with "/" points to.
Specifies the server location of the b:basedir document root; i.e. a fully
qualified link to the document root, including protocol and hostname.
Click on the package to download.
ip used for rating: 18.104.22.168