diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-18 21:55:01 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-18 21:55:01 +0000 |
commit | c1e37901fc8486c9960d7290e521ba51e292e94b (patch) | |
tree | 5367e8f83d9d313dd73c0499fd310f57df5e605f /runtime/doc/insert.txt | |
parent | a93fa7ee7856b54d3778e613c7b7e4b76aaeb2af (diff) |
updated for version 7.0e02v7.0e02
Diffstat (limited to 'runtime/doc/insert.txt')
-rw-r--r-- | runtime/doc/insert.txt | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt index 550bb3007d..1b6d59771b 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -1,4 +1,4 @@ -*insert.txt* For Vim version 7.0e. Last change: 2006 Apr 14 +*insert.txt* For Vim version 7.0e. Last change: 2006 Apr 18 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1103,7 +1103,7 @@ Vim can display the matches in a simplistic popup menu. The menu is used when: - The 'completeopt' option contains "menu" or "menuone". - The terminal supports at least 8 colors. -- There are at least two matches. +- There are at least two matches. One of "menuone" is used. The 'pumheight' option can be used to set a maximum height. The default is to use all space available. @@ -1264,6 +1264,26 @@ Note: Completion may fail in badly formatted documents. In such case try to run |:make| command to detect formatting problems. +HTML flavor *html-flavor* + +By default HTML completion provides completion for XHTML 1.0 Strict. This is +not the only HTML version. To use another data file and still have benefits of +custom completion for class, style, etc. attributes set g:html_omni_flavor +variable. Example (in .vimrc or filetype plugin file): > + + let g:html_omni_flavor = 'xhtml10t' + +Data for HTML completion will be read from 'autoload/xml/xhtml10t.vim' file +located somewhere in 'runtimepath' (not in default distribution). + +More about format of data file in |xml-omni-datafile|. Some of data files may +in future be found on vim-online site (|www|). + +Note that g:html_omni_flavor may point to file with any XML data. This makes +possible to mix PHP (|ft-php-omni|) completion with whatever XML dialect +(assuming you have data file for it). + + JAVASCRIPT *ft-javascript-omni* Completion of most elements of JavaScript language and DOM elements. @@ -1479,10 +1499,23 @@ In example are visible four special elements: names, as value two element List for additional menu info and long description. -Note: Tag names in data file MUST not contain namespace description. Check +Note: Tag names in data file MUST not contain namespace description. Check xsl.vim for example. +DTD -> Vim *dtd2vim* + +On |www| is script |dtd2vim| which parses DTD and creates XML data file +for Vim XML omni completion. + + dtd2vim: http://www.vim.org/scripts/script.php?script_id=1462 + +Check there and beginning of file for details of usage. +Script requires perl and: + + perlSGML: http://savannah.nongnu.org/projects/perlsgml + + Commands :XMLns {name} [{namespace}] *:XMLns* |