sponsor Vim development Vim logo Vim Book Ad

HTML - insert : Script for easy insert HTML tag A href and IMG with filled attributes.

 script karma  Rating 23/13, Downloaded by 1980  Comments, bugs, improvements  Vim wiki

created by
Petr Mach
 
script type
utility
 
description
Script add command :IMG and :HREF for easy inserting xhtml elements IMG and ANCHOR.

Without parameter call file browser dialog for select file.

If Vim is not support browse() function (non GUI Vim), you must insert path manualy.

:IMG command call identify (from ImageMagic) for detect geometry of image.
 
install details
Add content from script file to .vimrc or _vimrc.
Or read script file with command :source .
Or insert script into plugin directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
HTML_insert.vim 1.2 2003-02-16 6.0 Petr Mach big improvements
      rename HTML_loadImg() to HTML_insertImg() and fix inserted tag for XHTML compatibility
      create  HTML_insertHref() width new :HREF command
      create Absolute2Relative() for make inserted path relative for files in up directory
HTML_loadImg.vim 1.1 2003-02-13 6.0 Patrick Mairif bugfix: parsing manually added image path
HTML_loadImg.vim 1.0 2003-02-12 6.0 Petr Mach Initial upload
ip used for rating: 3.145.16.90

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github