[SCM] vim-scripts packaging branch, master, updated. v20091011-30-gc476b42

James Vega jamessan at debian.org
Sun Aug 14 03:27:00 UTC 2011


The following commit has been merged in the master branch:
commit 03ca8482009e075b613370a42dea68707ce112cd
Author: James Vega <jamessan at debian.org>
Date:   Sat Jun 25 23:28:59 2011 -0400

    Update xmledit to 1.9.1
    
    Signed-off-by: James Vega <jamessan at debian.org>

diff --git a/debian/changelog b/debian/changelog
index 588df26..43cde3f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,9 @@ vim-scripts (20091012) UNRELEASED; urgency=low
         (Closes: #552085)
     - surround: Update to 1.90
     - NERD_commenter: Update to 2.3.0
+    - xmledit: Update to 1.9.1
+      + Remove patches disabledby-xml.diff and xml-nodocs.diff, merged
+        upstream.
 
  -- James Vega <jamessan at debian.org>  Sun, 24 Jan 2010 17:10:16 -0500
 
diff --git a/debian/patches/disabledby-xml.diff b/debian/patches/disabledby-xml.diff
deleted file mode 100644
index a5cb5dd..0000000
--- a/debian/patches/disabledby-xml.diff
+++ /dev/null
@@ -1,15 +0,0 @@
-## disabledby-xml.diff by Stefano Zacchiroli <zack at debian.org>
-
-Index: vim-scripts/ftplugin/xml.vim
-===================================================================
---- vim-scripts.orig/ftplugin/xml.vim
-+++ vim-scripts/ftplugin/xml.vim
-@@ -44,7 +44,7 @@
- "==============================================================================
- 
- " Only do this when not done yet for this buffer
--if exists("b:did_ftplugin")
-+if exists("b:did_ftplugin") || exists("loaded_xml_ftplugin")
-   finish
- endif
- " sboles, init these variables so vim doesn't complain on wrap cancel
diff --git a/debian/patches/series b/debian/patches/series
index 70ee990..f0c2533 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,7 +9,6 @@ disabledby-supertab.diff
 disabledby-tetris.diff
 disabledby-color_sample_pack.diff
 disabledby-whatdomain.diff
-disabledby-xml.diff
 sokoboan_path.diff
 usagestring-dtd2vim.diff
 vimplate_debian-path.diff
@@ -19,4 +18,3 @@ closetag-sanity.diff
 lbdbq-query.diff
 lbdbq-detect-lbdbq.diff
 disabledby-doxygentoolkit.diff
-xml-nodocs.diff
diff --git a/debian/patches/xml-nodocs.diff b/debian/patches/xml-nodocs.diff
deleted file mode 100644
index 41a4440..0000000
--- a/debian/patches/xml-nodocs.diff
+++ /dev/null
@@ -1,28 +0,0 @@
-# Remove automatic documentation generation since it won't work when using the
-# packaged xml.vim (either lack of permissions because it's installed
-# system-wide or lack of permissions because the user's doc file will simply
-# be a symlink to /usr/share)
-
-Index: vim-scripts/ftplugin/xml.vim
-===================================================================
---- vim-scripts.orig/ftplugin/xml.vim
-+++ vim-scripts/ftplugin/xml.vim
-@@ -660,18 +660,6 @@
- endfunction
- " }}}2
- 
--let s:script_lines = readfile(expand("<sfile>"), "", 6)
--let s:revision=
--      \ substitute(s:script_lines[5], '^" Version:\s*\|\s*$', '', '')
--"      \ substitute("$Revision: 83 $",'\$\S*: \([.0-9]\+\) \$','\1','')
--silent! let s:install_status =
--    \ s:XmlInstallDocumentation(expand('<sfile>:p'), s:revision)
--if (s:install_status == 1)
--    echom expand("<sfile>:t:r") . '-plugin v' . s:revision .
--        \ ': Help-documentation installed.'
--endif
--
--
- " Mappings and Settings.                                             {{{1
- " This makes the '%' jump between the start and end of a single tag.
- setlocal matchpairs+=<:>
diff --git a/debian/vim-scripts.status b/debian/vim-scripts.status
index 6293c55..883d125 100644
--- a/debian/vim-scripts.status
+++ b/debian/vim-scripts.status
@@ -185,8 +185,8 @@ author_url:  http://www.vim.org/account/profile.php?user_id=667
 email:       devin at tritarget.com
 license:     GNU GPL, see /usr/share/common-licenses/GPL
 extras:      doc/xml-plugin.txt
-disabledby:  let loaded_xml_ftplugin = 1
-version:     1.84
+disabledby:  let loaded_xmledit = 1
+version:     1.9.1
 
 script_name: ftplugin/po.vim
 addon:       po
diff --git a/doc/xml-plugin.txt b/doc/xml-plugin.txt
index 31c22bc..f2ce0ab 100644
--- a/doc/xml-plugin.txt
+++ b/doc/xml-plugin.txt
@@ -1,9 +1,11 @@
-*xml-plugin.txt*  Help edit XML and SGML documents.                   v1.84
+*xml-plugin.txt*  Help edit XML and SGML documents.                  #version#
 
-                                   XML Edit      ~
+                                   XML Edit
 
 A filetype plugin to help edit XML and SGML documents.
 
+Version: 1.9.1
+
 This script provides some convenience when editing XML (and some SGML
 including HTML) formated documents. It allows you to jump to the beginning
 or end of the tag block your cursor is in. '%' will jump between '<' and '>'
@@ -29,7 +31,12 @@ NOTE: If you used the VIM 5.x version of this file (xmledit.vim) you'll need
 to comment out the section where you called it. It is no longer used in the
 VIM 6.x version. 
 
-Known Bugs      ~
+To disable the plugin (especially for systems that include this plugin as part
+of the distrobution) you can use the following line in your .vimrc:
+>
+    let loaded_xmledit = 1
+<
+Known Bugs 
 
 - This script will modify registers ". and "x; register "" will be restored.
 - < & > marks inside of a CDATA section are interpreted as actual XML tags
@@ -44,7 +51,7 @@ Known Bugs      ~
 
 ------------------------------------------------------------------------------
                                                          *xml-plugin-mappings*
-Mappings      ~
+Mappings 
 
 <LocalLeader> is a setting in VIM that depicts a prefix for scripts and
 plugins to use. By default this is the backslash key `\'. See |mapleader|
@@ -84,7 +91,7 @@ for details.
 
 ------------------------------------------------------------------------------
                                                          *xml-plugin-settings*
-Options      ~
+Options 
 
 (All options must be placed in your |.vimrc| prior to the |ftplugin|
 command.)
@@ -99,6 +106,17 @@ xml_tag_completion_map
         `>' place the following into your .vimrc: >
             let xml_tag_completion_map = "<C-l>"
 <
+xml_tag_syntax_prefixes
+        Sets a pattern that is used to distinguish XML syntax elements that
+        identify xml tags.  By defult the value is 'html\|xml\|docbk'.  This
+        means that all syntax items that start with "html", "xml" or "docbk" are
+        treated as XML tags.  In case a completion is triggered after a syntax
+        element that does not match this pattern the end tag will not be inserted.
+        The pattern should match at the beginning of a syntax element name.
+        If you edit XSLT files you probably want to add "xsl" to the list (note
+        the signle quotes): >
+            let xml_tag_syntax_prefixes = 'html\|xml\|xsl\|docbk'
+<
 xml_no_auto_nesting
         This turns off the auto nesting feature. After a completion is made
         and another `>' is typed xml-edit automatically will break the tag
@@ -129,7 +147,7 @@ xml_jump_string
 <
 ------------------------------------------------------------------------------
                                                         *xml-plugin-callbacks*
-Callback Functions      ~
+Callback Functions 
 
 A callback function is a function used to customize features on a per tag
 basis. For example say you wish to have a default set of attributs when you
@@ -155,7 +173,7 @@ XmlAttribCallback
         This is a generic callback for xml tags intended to add attributes.
 
                                                              *xml-plugin-html*
-Callback Example      ~
+Callback Example 
 
 The following is an example of using XmlAttribCallback in your .vimrc
 >
@@ -222,5 +240,3 @@ The following is a sample html.vim file type plugin you could use:
   " On to loading xml.vim
   runtime ftplugin/xml.vim
 <
-
- vim:tw=78:ts=8:ft=help:norl:
diff --git a/ftplugin/xml.vim b/ftplugin/xml.vim
index 267ac09..494e089 100644
--- a/ftplugin/xml.vim
+++ b/ftplugin/xml.vim
@@ -2,23 +2,13 @@
 " FileType:     XML
 " Author:       Devin Weaver <suki (at) tritarget.com> 
 " Maintainer:   Devin Weaver <suki (at) tritarget.com>
-" Last Change:  Tue Apr 07 11:12:08 EDT 2009
-" Version:      1.84
+" Last Change:  Thu Jul 22 16:06:01 EDT 2010
+" Version:      1.9.1
 " Location:     http://www.vim.org/scripts/script.php?script_id=301
 " Licence:      This program is free software; you can redistribute it
 "               and/or modify it under the terms of the GNU General Public
 "               License.  See http://www.gnu.org/copyleft/gpl.txt
-" Credits:      Brad Phelan <bphelan (at) mathworks.co.uk> for completing
-"                 tag matching and visual tag completion.
-"               Ma, Xiangjiang <Xiangjiang.Ma (at) broadvision.com> for
-"                 pointing out VIM 6.0 map <buffer> feature.
-"               Luc Hermitte <hermitte (at) free.fr> for testing the self
-"                 install documentation code and providing good bug fixes.
-"               Guo-Peng Wen for the self install documentation code.
-"               Shawn Boles <ickybots (at) gmail.com> for fixing the
-"                 <Leader>x cancelation bug. 
-"               Martijn van der Kwast <mvdkwast at gmx.net> for patching
-"                 problems with multi-languages (XML and PHP).
+" GetLatestVimScripts: 301 1 :AutoInstall: xmledit.vba
 
 " This script provides some convenience when editing XML (and some SGML)
 " formated documents.
@@ -29,9 +19,7 @@
 " Documentation should be available by ":help xml-plugin" command, once the
 " script has been copied in you .vim/plugin directory.
 "
-" You still can read the documentation at the end of this file. Locate it by
-" searching the "xml-plugin" string (and set ft=help to have
-" appropriate syntaxic coloration). 
+" You still can read the documentation in the file "doc/xml-plugin.txt"
 
 " Note: If you used the 5.x version of this file (xmledit.vim) you'll need to
 " comment out the section where you called it since it is no longer used in
@@ -44,7 +32,7 @@
 "==============================================================================
 
 " Only do this when not done yet for this buffer
-if exists("b:did_ftplugin")
+if exists("b:did_ftplugin") || exists("loaded_xmledit")
   finish
 endif
 " sboles, init these variables so vim doesn't complain on wrap cancel
@@ -69,16 +57,22 @@ function s:WrapTag(text)
     else
         let input_text = a:text
     endif
-    let wraptag = inputdialog('Tag to wrap "' . input_text . '" : ')
+    if exists("b:last_wrap_tag_used")
+        let default_tag = b:last_wrap_tag_used
+    else
+        let default_tag = ""
+    endif
+    let wraptag = inputdialog('Tag to wrap "' . input_text . '" : ', default_tag)
     if strlen(wraptag)==0
-        if strlen(b:last_wrap_tag_used)==0
-            undo
-            return
-        endif
-        let wraptag = b:last_wrap_tag_used
-        let atts = b:last_wrap_atts_used
+        undo
+        return
     else
-        let atts = inputdialog('Attributes in <' . wraptag . '> : ')
+        if wraptag == default_tag && exists("b:last_wrap_atts_used")
+            let default_atts = b:last_wrap_atts_used
+        else
+            let default_atts = ""
+        endif
+        let atts = inputdialog('Attributes in <' . wraptag . '> : ', default_atts)
     endif
     if (visualmode() ==# 'V')
         let text = strpart(a:text,0,strlen(a:text)-1)
@@ -181,7 +175,7 @@ function s:ParseTag( )
 
     if <SID>IsParsableTag (ltag)
         " find the break between tag name and atributes (or closing of tag)
-        let index = matchend (ltag, '[[:alnum:]_:\-]\+')
+        let index = matchend (ltag, '[[:alnum:]_:\.\-]\+')
 
         let tag_name = strpart (ltag, 1, index - 1)
         if strpart (ltag, index) =~ '[^/>[:blank:]]'
@@ -483,7 +477,12 @@ function s:InsertGt( )
   if (getline('.')[col('.') - 1] == '>')
     let char_syn=synIDattr(synID(line("."), col(".") - 1, 1), "name")
   endif
-  if -1 == match(char_syn, "xmlProcessing") && (0 == match(char_syn, 'html') || 0 == match(char_syn, 'xml') || 0 == match(char_syn, 'docbk'))
+  if !exists("g:xml_tag_syntax_prefixes")
+    let tag_syn_patt = 'html\|xml\|docbk'
+  else
+    let tag_syn_patt = g:xml_tag_syntax_prefixes
+  endif
+  if -1 == match(char_syn, "xmlProcessing") && 0 == match(char_syn, tag_syn_patt)
     call <SID>ParseTag()
   else
     if col(".") == col("$") - 1
@@ -537,141 +536,6 @@ function s:EditFromJump( )
 endfunction
 endif
 
-" Section: Doc installation {{{1
-" Function: s:XmlInstallDocumentation(full_name, revision)              {{{2
-"   Install help documentation.
-" Arguments:
-"   full_name: Full name of this vim plugin script, including path name.
-"   revision:  Revision of the vim script. #version# mark in the document file
-"              will be replaced with this string with 'v' prefix.
-" Return:
-"   1 if new document installed, 0 otherwise.
-" Note: Cleaned and generalized by guo-peng Wen
-"'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
-
-function! s:XmlInstallDocumentation(full_name, revision)
-    " Name of the document path based on the system we use:
-    if (has("unix"))
-        " On UNIX like system, using forward slash:
-        let l:slash_char = '/'
-        let l:mkdir_cmd  = ':silent !mkdir -p '
-    else
-        " On M$ system, use backslash. Also mkdir syntax is different.
-        " This should only work on W2K and up.
-        let l:slash_char = '\'
-        let l:mkdir_cmd  = ':silent !mkdir '
-    endif
-
-    let l:doc_path = l:slash_char . 'doc'
-    "let l:doc_home = l:slash_char . '.vim' . l:slash_char . 'doc'
-
-    " Figure out document path based on full name of this script:
-    let l:vim_plugin_path = fnamemodify(a:full_name, ':h')
-    "let l:vim_doc_path   = fnamemodify(a:full_name, ':h:h') . l:doc_path
-    let l:vim_doc_path    = matchstr(l:vim_plugin_path, 
-            \ '.\{-}\ze\%(\%(ft\)\=plugin\|macros\)') . l:doc_path
-    if (!(filewritable(l:vim_doc_path) == 2))
-        echomsg "Doc path: " . l:vim_doc_path
-        execute l:mkdir_cmd . l:vim_doc_path
-        if (!(filewritable(l:vim_doc_path) == 2))
-            " Try a default configuration in user home:
-            "let l:vim_doc_path = expand("~") . l:doc_home
-            let l:vim_doc_path = matchstr(&rtp,
-                  \ escape($HOME, '\') .'[/\\]\%(\.vim\|vimfiles\)')
-            if (!(filewritable(l:vim_doc_path) == 2))
-                execute l:mkdir_cmd . l:vim_doc_path
-                if (!(filewritable(l:vim_doc_path) == 2))
-                    " Put a warning:
-                    echomsg "Unable to open documentation directory"
-                    echomsg " type :help add-local-help for more informations."
-                    return 0
-                endif
-            endif
-        endif
-    endif
-
-    " Exit if we have problem to access the document directory:
-    if (!isdirectory(l:vim_plugin_path)
-        \ || !isdirectory(l:vim_doc_path)
-        \ || filewritable(l:vim_doc_path) != 2)
-        return 0
-    endif
-
-    " Full name of script and documentation file:
-    let l:script_name = 'xml.vim'
-    let l:doc_name    = 'xml-plugin.txt'
-    let l:plugin_file = l:vim_plugin_path . l:slash_char . l:script_name
-    let l:doc_file    = l:vim_doc_path    . l:slash_char . l:doc_name
-
-    " Bail out if document file is still up to date:
-    if (filereadable(l:doc_file)  &&
-        \ getftime(l:plugin_file) < getftime(l:doc_file))
-        return 0
-    endif
-
-    " Prepare window position restoring command:
-    if (strlen(@%))
-        let l:go_back = 'b ' . bufnr("%")
-    else
-        let l:go_back = 'enew!'
-    endif
-
-    " Create a new buffer & read in the plugin file (me):
-    setl nomodeline
-    exe 'enew!'
-    exe 'r ' . l:plugin_file
-
-    setl modeline
-    let l:buf = bufnr("%")
-    setl noswapfile modifiable
-
-    norm zR
-    norm gg
-
-    " Delete from first line to a line starts with
-    " === START_DOC
-    1,/^=\{3,}\s\+START_DOC\C/ d
-
-    " Delete from a line starts with
-    " === END_DOC
-    " to the end of the documents:
-    /^=\{3,}\s\+END_DOC\C/,$ d
-
-    " Remove fold marks:
-    % s/{\{3}[1-9]/    /
-
-    " Add modeline for help doc: the modeline string is mangled intentionally
-    " to avoid it be recognized by VIM:
-    call append(line('$'), '')
-    call append(line('$'), ' v' . 'im:tw=78:ts=8:ft=help:norl:')
-
-    " Replace revision:
-    exe "normal :1,5s/#version#/ v" . a:revision . "/\<CR>"
-
-    " Save the help document:
-    exe 'w! ' . l:doc_file
-    exe l:go_back
-    exe 'bw ' . l:buf
-
-    " Build help tags:
-    exe 'helptags ' . l:vim_doc_path
-
-    return 1
-endfunction
-" }}}2
-
-let s:script_lines = readfile(expand("<sfile>"), "", 6)
-let s:revision=
-      \ substitute(s:script_lines[5], '^" Version:\s*\|\s*$', '', '')
-"      \ substitute("$Revision: 83 $",'\$\S*: \([.0-9]\+\) \$','\1','')
-silent! let s:install_status =
-    \ s:XmlInstallDocumentation(expand('<sfile>:p'), s:revision)
-if (s:install_status == 1)
-    echom expand("<sfile>:t:r") . '-plugin v' . s:revision .
-        \ ': Help-documentation installed.'
-endif
-
-
 " Mappings and Settings.                                             {{{1
 " This makes the '%' jump between the start and end of a single tag.
 setlocal matchpairs+=<:>
@@ -702,8 +566,8 @@ else
     execute "inoremap <buffer> " . g:xml_tag_completion_map . " <Esc>:call <SID>InsertGt()<Cr>"
 endif
 
-nnoremap <buffer> <LocalLeader><Space> :call <SID>EditFromJump()<Cr>
-inoremap <buffer> <LocalLeader><Space> <Esc>:call <SID>EditFromJump()<Cr>
+nnoremap <buffer> <LocalLeader><LocalLeader> :call <SID>EditFromJump()<Cr>
+inoremap <buffer> <LocalLeader><LocalLeader> <Esc>:call <SID>EditFromJump()<Cr>
 " Clear out all left over xml_jump_string garbage
 nnoremap <buffer> <LocalLeader>w :call <SID>ClearJumpMarks()<Cr>
 " The syntax files clear out any predefined syntax definitions. Recreate
@@ -717,236 +581,3 @@ augroup xml
 augroup END
 "}}}1
 finish
-
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" Section: Documentation content                                          {{{1
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-=== START_DOC
-*xml-plugin.txt*  Help edit XML and SGML documents.                  #version#
-
-                                   XML Edit {{{2 ~
-
-A filetype plugin to help edit XML and SGML documents.
-
-This script provides some convenience when editing XML (and some SGML
-including HTML) formated documents. It allows you to jump to the beginning
-or end of the tag block your cursor is in. '%' will jump between '<' and '>'
-within the tag your cursor is in. When in insert mode and you finish a tag
-(pressing '>') the tag will be completed. If you press '>' twice it will
-complete the tag and place the cursor in the middle of the tags on it's own
-line (helps with nested tags).
-
-Usage: Place this file into your ftplugin directory. To add html support
-Sym-link or copy this file to html.vim in your ftplugin directory. To activte
-the script place 'filetype plugin on' in your |.vimrc| file. See |ftplugins|
-for more information on this topic.
-
-If the file edited is of type "html" and "xml_use_html" is  defined then the
-following tags will not auto complete:
-<img>, <input>, <param>, <frame>, <br>, <hr>, <meta>, <link>, <base>, <area>
-
-If the file edited is of type 'html' and 'xml_use_xhtml' is defined the above
-tags will autocomplete the xml closing staying xhtml compatable.
-ex. <hr> becomes <hr /> (see |xml-plugin-settings|)
-
-NOTE: If you used the VIM 5.x version of this file (xmledit.vim) you'll need
-to comment out the section where you called it. It is no longer used in the
-VIM 6.x version. 
-
-Known Bugs {{{2 ~
-
-- This script will modify registers ". and "x; register "" will be restored.
-- < & > marks inside of a CDATA section are interpreted as actual XML tags
-  even if unmatched.
-- Although the script can handle leading spaces such as < tag></ tag> it is
-  illegal XML syntax and considered very bad form.
-- Placing a literal `>' in an attribute value will auto complete dispite that
-  the start tag isn't finished. This is poor XML anyway you should use
-  > instead.
-- The matching algorithm can handle illegal tag characters where as the tag
-  completion algorithm can not.
-
-------------------------------------------------------------------------------
-                                                         *xml-plugin-mappings*
-Mappings {{{2 ~
-
-<LocalLeader> is a setting in VIM that depicts a prefix for scripts and
-plugins to use. By default this is the backslash key `\'. See |mapleader|
-for details.
-
-<LocalLeader><Space>
-        Normal or Insert - Continue editing after the ending tag. This
-        option requires xml_jump_string to be set to function. When a tag
-        is completed it will append the xml_jump_string. Once this mapping
-        is ran it will delete the next xml_jump_string pattern to the right
-        of the curser and delete it leaving you in insert mode to continue
-        editing.
-
-<LocalLeader>w
-        Normal - Will clear the entire file of left over xml_jump_string garbage.
-        * This will also happen automatically when you save the file. *
-
-<LocalLeader>x
-        Visual - Place a custom XML tag to suround the selected text. You
-        need to have selected text in visual mode before you can use this
-        mapping. See |visual-mode| for details.
-
-<LocalLeader>.   or      <LocalLeader>>
-        Insert - Place a literal '>' without parsing tag.
-
-<LocalLeader>5   or      <LocalLeader>%
-        Normal or Visual - Jump to the begining or end tag.
-
-<LocalLeader>d
-        Normal - Deletes the surrounding tags from the cursor. >
-            <tag1>outter <tag2>inner text</tag2> text</tag1>
-                    ^
-<       Turns to: >
-            outter <tag2>inner text</tag2> text
-            ^
-<
-
-------------------------------------------------------------------------------
-                                                         *xml-plugin-settings*
-Options {{{2 ~
-
-(All options must be placed in your |.vimrc| prior to the |ftplugin|
-command.)
-
-xml_tag_completion_map
-        Use this setting to change the default mapping to auto complete a
-        tag. By default typing a literal `>' will cause the tag your editing
-        to auto complete; pressing twice will auto nest the tag. By using
-        this setting the `>' will be a literal `>' and you must use the new
-        mapping to perform auto completion and auto nesting. For example if
-        you wanted Control-L to perform auto completion inmstead of typing a
-        `>' place the following into your .vimrc: >
-            let xml_tag_completion_map = "<C-l>"
-<
-xml_no_auto_nesting
-        This turns off the auto nesting feature. After a completion is made
-        and another `>' is typed xml-edit automatically will break the tag
-        accross multiple lines and indent the curser to make creating nested
-        tqags easier. This feature turns it off. Enter the following in your
-        .vimrc: >
-            let xml_no_auto_nesting = 1
-<
-xml_use_xhtml
-        When editing HTML this will auto close the short tags to make valid
-        XML like <hr /> and <br />. Enter the following in your vimrc to
-        turn this option on: >
-            let xml_use_xhtml = 1
-<
-xml_no_html
-        This turns off the support for HTML specific tags. Place this in your
-        .vimrc: >
-            let xml_no_html = 1
-<
-xml_jump_string
-        This turns off the support for continuing edits after an ending tag.
-        xml_jump_string can be any string how ever a simple character will
-        suffice. Pick a character or small string that is unique and will
-        not interfer with your normal editing. See the <LocalLeader>Space
-        mapping for more.
-        .vimrc: >
-            let xml_jump_string = "`"
-<
-------------------------------------------------------------------------------
-                                                        *xml-plugin-callbacks*
-Callback Functions {{{2 ~
-
-A callback function is a function used to customize features on a per tag
-basis. For example say you wish to have a default set of attributs when you
-type an empty tag like this:
-    You type: <tag>
-    You get:  <tag default="attributes"></tag>
-
-This is for any script programmers who wish to add xml-plugin support to
-there own filetype plugins.
-
-Callback functions recive one attribute variable which is the tag name. The
-all must return either a string or the number zero. If it returns a string
-the plugin will place the string in the proper location. If it is a zero the
-plugin will ignore and continue as if no callback existed.
-
-The following are implemented callback functions:
-
-HtmlAttribCallback
-        This is used to add default attributes to html tag. It is intended
-        for HTML files only.
-
-XmlAttribCallback
-        This is a generic callback for xml tags intended to add attributes.
-
-                                                             *xml-plugin-html*
-Callback Example {{{2 ~
-
-The following is an example of using XmlAttribCallback in your .vimrc
->
-        function XmlAttribCallback (xml_tag)
-            if a:xml_tag ==? "my-xml-tag"
-                return "attributes=\"my xml attributes\""
-            else
-                return 0
-            endif
-        endfunction
-<
-The following is a sample html.vim file type plugin you could use:
->
-  " Vim script file                                       vim600:fdm=marker:
-  " FileType:   HTML
-  " Maintainer: Devin Weaver <vim (at) tritarget.com>
-  " Location:   http://www.vim.org/scripts/script.php?script_id=301
-
-  " This is a wrapper script to add extra html support to xml documents.
-  " Original script can be seen in xml-plugin documentation.
-
-  " Only do this when not done yet for this buffer
-  if exists("b:did_ftplugin")
-    finish
-  endif
-  " Don't set 'b:did_ftplugin = 1' because that is xml.vim's responsability.
-
-  let b:html_mode = 1
-
-  if !exists("*HtmlAttribCallback")
-  function HtmlAttribCallback( xml_tag )
-      if a:xml_tag ==? "table"
-          return "cellpadding=\"0\" cellspacing=\"0\" border=\"0\""
-      elseif a:xml_tag ==? "link"
-          return "href=\"/site.css\" rel=\"StyleSheet\" type=\"text/css\""
-      elseif a:xml_tag ==? "body"
-          return "bgcolor=\"white\""
-      elseif a:xml_tag ==? "frame"
-          return "name=\"NAME\" src=\"/\" scrolling=\"auto\" noresize"
-      elseif a:xml_tag ==? "frameset"
-          return "rows=\"0,*\" cols=\"*,0\" border=\"0\""
-      elseif a:xml_tag ==? "img"
-          return "src=\"\" width=\"0\" height=\"0\" border=\"0\" alt=\"\""
-      elseif a:xml_tag ==? "a"
-          if has("browse")
-              " Look up a file to fill the href. Used in local relative file
-              " links. typeing your own href before closing the tag with `>'
-              " will override this.
-              let cwd = getcwd()
-              let cwd = substitute (cwd, "\\", "/", "g")
-              let href = browse (0, "Link to href...", getcwd(), "")
-              let href = substitute (href, cwd . "/", "", "")
-              let href = substitute (href, " ", "%20", "g")
-          else
-              let href = ""
-          endif
-          return "href=\"" . href . "\""
-      else
-          return 0
-      endif
-  endfunction
-  endif
-
-  " On to loading xml.vim
-  runtime ftplugin/xml.vim
-<
-=== END_DOC
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" vim: set tabstop=8 shiftwidth=4 softtabstop=4 smartindent
-" vim600: set foldmethod=marker smarttab fileencoding=iso-8859-15 
diff --git a/html/ftplugin_xml.vim.html b/html/ftplugin_xml.vim.html
index bd17dbe..99990d0 100644
--- a/html/ftplugin_xml.vim.html
+++ b/html/ftplugin_xml.vim.html
@@ -166,8 +166,14 @@
 <tr>
   <td class="lightbg"><b> script karma </b></td>
   <td>
-    Rating <b>1175/450</b>,
-    Downloaded by 23516  </td>
+    Rating <b>1333/523</b>,
+    Downloaded by 31468  </td>
+  <td class="lightbg">
+  <b> Comments, bugs, improvements </b>
+  </td>
+  <td>
+    <a href="http://vim.wikia.com/wiki/Script:301">Vim wiki</a>
+  </td>  
 </tr>
 </table>
 <p>
@@ -180,7 +186,7 @@
 <tr><td>ftplugin</td></tr>
 <tr><td> </td></tr>
 <tr><td class="prompt">description</td></tr>
-<tr><td>This script provides some convenience when editing XML (and some SGML including
<br>HTML) formated documents. It allows you to jump to the beginning or end of the
<br>tag block your cursor is in. '%' will jump between '<' and '>' within the tag
<br>your cursor is in. When in insert mode and you finish a tag (pressing '>') the
<br>tag will be completed. If you press '>' twice it will complete the tag and
<br>place the cursor in the middle of the tags on it's own line.
<br>
<br>For the latest development snapshot visit
<br>    <a target="_blank" href="http://github.com/sukima/xmledit/tree/master/">http://github.com/sukima/xmledit/tree/master/</A></td></tr>
+<tr><td>This script provides some convenience when editing XML (and some SGML including
<br>HTML) formated documents. It allows you to jump to the beginning or end of the
<br>tag block your cursor is in. '%' will jump between '<' and '>' within the tag
<br>your cursor is in. When in insert mode and you finish a tag (pressing '>') the
<br>tag will be completed. If you press '>' twice it will complete the tag and
<br>place the cursor in the middle of the tags on it's own line.
<br>
<br>For the latest development snapshot visit
<br>    <a target="_blank" href="http://github.com/sukima/xmledit/">http://github.com/sukima/xmledit/</A>
<br>
<br>Please fork this project. We need help making this better.</td></tr>
 <tr><td> </td></tr>
 <tr><td class="prompt">install details</td></tr>
 <tr><td>This new version has the documentation coupled with the script. You only need one file xml.vim.
<br>
<br>Place this file in your ftplugin directory (i.e. '~/.vim/ftplugin/xml.vim) Type :help ftplugins for more information on installation.
<br>
<br>The documentation will install automatically the first time the plugin is ran. *NOTE* the first time the plugin is ran is NOT the first time VIM is ran. Because this is a file plugin you have to open an XML document to execute the script. So open a new test.xml file at first.
<br>
<br>The html.vim script that came with the old tarball is now in the documentation as an example. to use it just copy/paste it into the file html.vim. See :help xml-plugin-html after the documentation installs.
<br>
<br>ChangeLog and older versions availiable on request.</td></tr>
@@ -217,36 +223,28 @@ Click on the package to download.
     <th valign="top">release notes</th>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=10362">xml.vim</a></td>
-    <td class="rowodd" valign="top" nowrap><b>1.84</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2009-04-07</i></td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=13387">xmledit-1.9.1.vba</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.9.1</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2010-07-22</i></td>
     <td class="rowodd" valign="top" nowrap>7.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=667">Devin Weaver</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Latest development build after move to Git repository. No new features.</td>
+    <td class="rowodd" valign="top" width="2000">Adds a global disable switch
<br>
<br>Updated to vimball packaging (compatible with pathogeon)</td>
 </tr>
 <tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=9921">xml.vim</a></td>
-    <td class="roweven" valign="top" nowrap><b>82</b></td>
-    <td class="roweven" valign="top" nowrap><i>2009-02-06</i></td>
+        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=10362">xml.vim</a></td>
+    <td class="roweven" valign="top" nowrap><b>1.84</b></td>
+    <td class="roweven" valign="top" nowrap><i>2009-04-07</i></td>
     <td class="roweven" valign="top" nowrap>7.0</td>
     <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=667">Devin Weaver</a></i></td>
-    <td class="roweven" valign="top" width="2000">Add a special jump tag used to allow the cursor to move from inside a tag to outside and continue typing. See xml_jump_string in the documentation for details.</td>
+    <td class="roweven" valign="top" width="2000">Latest development build after move to Git repository. No new features.</td>
 </tr>
 <tr>
-        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=8245">xml.vim</a></td>
-    <td class="rowodd" valign="top" nowrap><b>65</b></td>
-    <td class="rowodd" valign="top" nowrap><i>2008-02-08</i></td>
-    <td class="rowodd" valign="top" nowrap>7.0</td>
+        <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4280">xml.vim</a></td>
+    <td class="rowodd" valign="top" nowrap><b>1.29</b></td>
+    <td class="rowodd" valign="top" nowrap><i>2005-05-14</i></td>
+    <td class="rowodd" valign="top" nowrap>6.0</td>
     <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=667">Devin Weaver</a></i></td>
-    <td class="rowodd" valign="top" width="2000">Several bug fixes and latest development snap shot.</td>
-</tr>
-<tr>
-        <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4280">xml.vim</a></td>
-    <td class="roweven" valign="top" nowrap><b>1.29</b></td>
-    <td class="roweven" valign="top" nowrap><i>2005-05-14</i></td>
-    <td class="roweven" valign="top" nowrap>6.0</td>
-    <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=667">Devin Weaver</a></i></td>
-    <td class="roweven" valign="top" width="2000">Fixed some documentation. Added <a> tag to html example.
<br>Added Visual select tag mapping. Cosmetics</td>
+    <td class="rowodd" valign="top" width="2000">Fixed some documentation. Added <a> tag to html example.
<br>Added Visual select tag mapping. Cosmetics</td>
 </tr>
 </table>
 <!-- finish off the framework -->
diff --git a/html/index.html b/html/index.html
index 85b8385..06523e0 100644
--- a/html/index.html
+++ b/html/index.html
@@ -50,7 +50,7 @@
    <li><a href="syntax_mkd.vim.html">syntax/mkd.vim.html</a></li>
   </ul>
   <p>
-  Page generated on Sat, 25 Jun 2011 23:13:45 -0400
+  Page generated on Sat, 25 Jun 2011 23:28:10 -0400
 .
   </p>
  </body>

-- 
vim-scripts packaging



More information about the pkg-vim-maintainers mailing list