html_FileCompletion : Base dir- and URL-aware file completion for HTML links.
| script karma |
Rating 1/1,
Downloaded by 133
|
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Ingo Karkat |
| |
| script type |
| ftplugin |
| |
| description |
DESCRIPTION
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
(http://host/foo...) links.
USAGE
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. |
| |
| install details |
INSTALLATION
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.
vim html_FileCompletion.vba.gz
:so %
To uninstall, use the :RmVimball command.
DEPENDENCIES
- Requires Vim 7.0 or higher.
CONFIGURATION
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.
|
| |
script versions (upload new version)
Click on the package to download.
ip used for rating: 107.20.7.65
|